[gnue] r10241 - in trunk/gnue-forms: . src/uidrivers/wx/widgets
[email protected] Sun, 14 Nov 2010 15:39:07 -0600 (CST)
| Newsgroups | gmane.comp.cms.gnue.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: reinhard Date: 2010-11-14 15:39:07 -0600 (Sun, 14 Nov 2010) New Revision: 10241 Modified: trunk/gnue-forms/ trunk/gnue-forms/src/uidrivers/wx/widgets/entry.py Log: Fixed a bug which caused the selection in a ListBox always to jump to the= first entry when the focus entered it. Property changes on: trunk/gnue-forms ___________________________________________________________________ Name: bzr:revision-info - timestamp: 2010-11-14 22:03:45.615000010 +0100 committer: Reinhard M=C3=BCller <[email protected]> properties:=20 branch-nick: forms + timestamp: 2010-11-14 22:38:13.628000021 +0100 committer: Reinhard M=C3=BCller <[email protected]> properties:=20 branch-nick: forms Name: bzr:file-ids - src/uidrivers/wx/widgets/_base.py 10053@3a364389-8fce-0310-8f11-cc36= 3fde16c7:trunk%2Fgnue-forms:src%2Fuidrivers%2Fwx%2Fwidgets%2F_base.py src/uidrivers/wx/widgets/entry.py 10053@3a364389-8fce-0310-8f11-cc363fde1= 6c7:trunk%2Fgnue-forms:src%2Fuidrivers%2Fwx%2Fwidgets%2Fentry.py + src/uidrivers/wx/widgets/entry.py 10053@3a364389-8fce-0310-8f11-cc36= 3fde16c7:trunk%2Fgnue-forms:src%2Fuidrivers%2Fwx%2Fwidgets%2Fentry.py Name: bzr:revision-id:v4 - 3116 [email protected] 3117 [email protected] 3118 [email protected] 3119 [email protected] 3120 [email protected] 3121 [email protected] 3122 [email protected] 3123 [email protected] 3124 [email protected] 3125 [email protected] 3126 [email protected] 3127 [email protected] 3128 [email protected] 3129 [email protected] 3130 [email protected] 3131 [email protected] 3132 [email protected] 3133 [email protected] 3134 [email protected] 3135 [email protected] 3136 [email protected] 3137 [email protected] 3138 [email protected] 3139 [email protected] 3140 [email protected] 3141 [email protected] 3142 [email protected] 3143 [email protected] 3144 [email protected] 3145 [email protected] 3146 [email protected] 3147 [email protected] 3148 [email protected] 3149 [email protected] 3150 [email protected] 3151 [email protected] 3152 [email protected] + 3116 [email protected] 3117 [email protected] 3118 [email protected] 3119 [email protected] 3120 [email protected] 3121 [email protected] 3122 [email protected] 3123 [email protected] 3124 [email protected] 3125 [email protected] 3126 [email protected] 3127 [email protected] 3128 [email protected] 3129 [email protected] 3130 [email protected] 3131 [email protected] 3132 [email protected] 3133 [email protected] 3134 [email protected] 3135 [email protected] 3136 [email protected] 3137 [email protected] 3138 [email protected] 3139 [email protected] 3140 [email protected] 3141 [email protected] 3142 [email protected] 3143 [email protected] 3144 [email protected] 3145 [email protected] 3146 [email protected] 3147 [email protected] 3148 [email protected] 3149 [email protected] 3150 [email protected] 3151 [email protected] 3152 [email protected] 3153 [email protected] Name: bzr:text-parents - src/uidrivers/wx/widgets/_base.py [email protected]= 020152139-rlllh9m2qn45atcz src/uidrivers/wx/widgets/entry.py [email protected]= 4024-57tv8mf0wbiycuw1 +=20 Modified: trunk/gnue-forms/src/uidrivers/wx/widgets/entry.py =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/gnue-forms/src/uidrivers/wx/widgets/entry.py 2010-11-14 21:04:1= 0 UTC (rev 10240) +++ trunk/gnue-forms/src/uidrivers/wx/widgets/entry.py 2010-11-14 21:39:0= 7 UTC (rev 10241) @@ -599,6 +599,10 @@ if isinstance(widget, wx.ComboBox): widget.SetMark(selection1, selection2) =20 + elif isinstance(widget, wx.ListBox): + # Take care: SetSelection in a ListBox sets the selected ite= m! + pass + elif hasattr(widget, 'SetSelection'): if 'wxGTK' in wx.PlatformInfo: wx.CallAfter(widget.SetSelection, selection1, selection2= )