Browse Source

Merge branch 'release/1.10.x'

rdb 6 years ago
parent
commit
1302b215ea
1 changed files with 3 additions and 3 deletions
  1. 3 3
      direct/src/gui/DirectOptionMenu.py

+ 3 - 3
direct/src/gui/DirectOptionMenu.py

@@ -27,7 +27,7 @@ class DirectOptionMenu(DirectButton):
             # Amount of padding to place around popup button indicator
             # Amount of padding to place around popup button indicator
             ('popupMarkerBorder', (.1, .1), None),
             ('popupMarkerBorder', (.1, .1), None),
             # The initial position of the popup marker
             # The initial position of the popup marker
-            ('popupMarker_pos', (0, 0, 0), None),
+            ('popupMarker_pos', None, None),
             # Background color to use to highlight popup menu items
             # Background color to use to highlight popup menu items
             ('highlightColor', (.5, .5, .5, 1), None),
             ('highlightColor', (.5, .5, .5, 1), None),
             # Extra scale to use on highlight popup menu items
             # Extra scale to use on highlight popup menu items
@@ -44,8 +44,6 @@ class DirectOptionMenu(DirectButton):
         DirectButton.__init__(self, parent)
         DirectButton.__init__(self, parent)
         # Record any user specified frame size
         # Record any user specified frame size
         self.initFrameSize = self['frameSize']
         self.initFrameSize = self['frameSize']
-        # Record any user specified popup marker position
-        self.initPopupMarkerPos = self['popupMarker_pos']
         # Create a small rectangular marker to distinguish this button
         # Create a small rectangular marker to distinguish this button
         # as a popup menu button
         # as a popup menu button
         self.popupMarker = self.createcomponent(
         self.popupMarker = self.createcomponent(
@@ -54,6 +52,8 @@ class DirectOptionMenu(DirectButton):
             frameSize = (-0.5, 0.5, -0.2, 0.2),
             frameSize = (-0.5, 0.5, -0.2, 0.2),
             scale = 0.4,
             scale = 0.4,
             relief = DGG.RAISED)
             relief = DGG.RAISED)
+        # Record any user specified popup marker position
+        self.initPopupMarkerPos = self['popupMarker_pos']
         # This needs to popup the menu too
         # This needs to popup the menu too
         self.popupMarker.bind(DGG.B1PRESS, self.showPopupMenu)
         self.popupMarker.bind(DGG.B1PRESS, self.showPopupMenu)
         # Check if item is highlighted on release and select it if it is
         # Check if item is highlighted on release and select it if it is