Changeset 4433
- Timestamp:
- 08/21/08 14:03:58 (3 months ago)
- Files:
-
- trunk/dabo/ui/uiwx/__init__.py (modified) (3 diffs)
- trunk/dabo/ui/uiwx/dCheckList.py (moved) (moved from trunk/dabo/ui/uiwx/dCheckListBox.py) (4 diffs)
- trunk/ide/ClassDesignerPropSheet.py (modified) (1 diff)
- trunk/ide/wizards/AppWizard/AppWizard.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dabo/ui/uiwx/__init__.py
r4386 r4433 75 75 from dCalendar import dExtendedCalendar 76 76 from dCheckBox import dCheckBox 77 from dCheckList Box import dCheckListBox77 from dCheckList import dCheckList 78 78 from dColorDialog import dColorDialog 79 79 from dComboBox import dComboBox … … 162 162 warnings.warn(_("'dFoldPanelBar' is a deprecated name. Use 'dSlidePanelControl' instead"), DeprecationWarning) 163 163 super(dFoldPanelBar, self).__init__(*args, **kwargs) 164 164 165 class dFoldPanel(dSlidePanel): 165 166 def __init__(self, *args, **kwargs): … … 167 168 super(dFoldPanel, self).__init__(*args, **kwargs) 168 169 170 class dCheckListBox(dCheckList): 171 def __init__(self, *args, **kwargs): 172 warnings.warn(_("'dCheckListBox' is a deprecated name. Use 'dCheckList' instead"), DeprecationWarning) 173 super(dCheckListBox, self).__init__(*args, **kwargs) 169 174 170 175 artConstants = {} trunk/dabo/ui/uiwx/dCheckList.py
r3303 r4433 9 9 10 10 11 class dCheckList Box(dcm.dControlItemMixin, wx.CheckListBox):11 class dCheckList(dcm.dControlItemMixin, wx.CheckListBox): 12 12 """Creates a listbox, allowing the user to choose one or more items 13 13 by checking/unchecking each one. 14 14 """ 15 15 def __init__(self, parent, properties=None, attProperties=None, *args, **kwargs): 16 self._baseClass = dCheckList Box16 self._baseClass = dCheckList 17 17 self._choices = [] 18 18 preClass = wx.PreCheckListBox … … 22 22 23 23 def _initEvents(self): 24 super(dCheckList Box, self)._initEvents()24 super(dCheckList, self)._initEvents() 25 25 self.Bind(wx.EVT_CHECKLISTBOX, self._onWxHit) 26 26 … … 71 71 72 72 MultipleSelect = property(_getMultipleSelect, None, None, 73 _("MultipleSelect for dCheckList Boxis always True."))73 _("MultipleSelect for dCheckList is always True.")) 74 74 75 75 76 76 77 class _dCheckList Box_test(dCheckListBox):77 class _dCheckList_test(dCheckList): 78 78 def initProperties(self): 79 79 # Simulate a database: … … 110 110 if __name__ == "__main__": 111 111 import test 112 test.Test().runTest(_dCheckList Box_test)112 test.Test().runTest(_dCheckList_test) 113 113 trunk/ide/ClassDesignerPropSheet.py
r4425 r4433 569 569 self.Sizer.append(lbl, halign="center") 570 570 choices = ["All", "Top", "Bottom", "Left", "Right", "None"] 571 self.editor = dabo.ui.dCheckList Box(self, Choices=choices,571 self.editor = dabo.ui.dCheckList(self, Choices=choices, 572 572 ValueMode="String", Height=200) 573 573 self.editor.bindEvent(dEvents.Hit, self.onSidesChanged) trunk/ide/wizards/AppWizard/AppWizard.py
r3682 r4433 336 336 your application.""") 337 337 lbl = dLabel(self, Caption=txt) 338 clb = self.addObject(dabo.ui.dCheckList Box, Name="clbTableSelection")338 clb = self.addObject(dabo.ui.dCheckList, Name="clbTableSelection") 339 339 self.Sizer.append(lbl) 340 340 self.Sizer.append1x(clb)
