From 5645e2050592f23878f924d3f69e40e03bb97e6b Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Sat, 25 Apr 2020 09:29:14 +0300 Subject: [PATCH] Do not float auxiliary windows on parent if there is no parent --- gui/auxFrame.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/auxFrame.py b/gui/auxFrame.py index 90ef09564..2a66827ff 100644 --- a/gui/auxFrame.py +++ b/gui/auxFrame.py @@ -27,7 +27,9 @@ class AuxiliaryFrame(wx.Frame): _instance = None def __init__(self, parent, id=None, title=None, pos=None, size=None, style=None, name=None, resizeable=False): - baseStyle = wx.FRAME_NO_TASKBAR | wx.FRAME_FLOAT_ON_PARENT | wx.CAPTION | wx.CLOSE_BOX | wx.SYSTEM_MENU + baseStyle = wx.FRAME_NO_TASKBAR | wx.CAPTION | wx.CLOSE_BOX | wx.SYSTEM_MENU + if parent is not None: + baseStyle = baseStyle | wx.FRAME_FLOAT_ON_PARENT if resizeable: baseStyle = baseStyle | wx.RESIZE_BORDER | wx.MAXIMIZE_BOX kwargs = {