dabo Commit
Revision 2319
Date: 2006-10-08 16:34:33 -0700 (Sun, 08 Oct 2006)
Author: paul

Changed:
U   trunk/dabo/ui/uiwx/dRadioList.py

Log:
My last changes to dRadioList, attempting to get keyboard navigation working
on Linux, also included a change that tells wx which radio button is the
first, which sounds like a good thing to do according to the docs. However,
I neglected to actually send the new style to the constuctor. 


Diff:
Modified: trunk/dabo/ui/uiwx/dRadioList.py
===================================================================
--- trunk/dabo/ui/uiwx/dRadioList.py    2006-10-08 23:32:52 UTC (rev 2318)
+++ trunk/dabo/ui/uiwx/dRadioList.py    2006-10-08 23:34:33 UTC (rev 2319)
@@ -242,6 +242,7 @@
                        self._choices = choices
                        self._items = []
                        for idx, itm in enumerate(choices):
+                               style = 0
                                if idx == 0:
                                        if len(choices) == 1:
                                                style = wx.RB_SINGLE
@@ -249,8 +250,7 @@
                                                style = wx.RB_GROUP
                                else:
                                        
self.Sizer.appendSpacer(self._buttonSpacing)
-                                       style = 0
-                               btn = _dRadioButton(self, Caption=itm)
+                               btn = _dRadioButton(self, Caption=itm, 
style=style)
                                self.Sizer.append(btn)
                                self._items.append(btn)
                        # Try each saved value




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to