Browse Source

wxGUI: fix agwStyle issue

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@42669 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 năm trước cách đây
mục cha
commit
1e2faafad1
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      gui/wxpython/gui_modules/ghelp.py

+ 4 - 4
gui/wxpython/gui_modules/ghelp.py

@@ -345,10 +345,10 @@ class ItemTree(CT.CustomTreeCtrl):
     def __init__(self, parent, id = wx.ID_ANY,
                  ctstyle = CT.TR_HIDE_ROOT | CT.TR_FULL_ROW_HIGHLIGHT | CT.TR_HAS_BUTTONS |
                  CT.TR_LINES_AT_ROOT | CT.TR_SINGLE, **kwargs):
-        if 'style' in kwargs:
-            ctstyle |= kwargs['style']
-            del kwargs['style']
-        super(ItemTree, self).__init__(parent, id, style = ctstyle, **kwargs)
+        if globalvar.hasAgw:
+            super(ItemTree, self).__init__(parent, id, agwStyle = ctstyle, **kwargs)
+        else:
+            super(ItemTree, self).__init__(parent, id, style = ctstyle, **kwargs)
         
         self.root = self.AddRoot(_("Menu tree"))
         self.itemsMarked = [] # list of marked items