Browse Source

wxGUI/forms: hopefully fixed dialog styles on Windows

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@52993 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 12 năm trước cách đây
mục cha
commit
19a2bba7f3
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      gui/wxpython/gui_core/forms.py

+ 6 - 0
gui/wxpython/gui_core/forms.py

@@ -1812,6 +1812,12 @@ class CmdPanel(wx.Panel):
 
 
         self.Layout()
         self.Layout()
 
 
+        # skip is needed for wx.Notebook on Windows
+        event.Skip()
+        # this is needed for dialogs launched from layer manager
+        # event is somehow propagated?
+        event.StopPropagation()
+
     def OnColorChange(self, event):
     def OnColorChange(self, event):
         myId = event.GetId()
         myId = event.GetId()
         for p in self.task.params:
         for p in self.task.params: