dabo Commit Revision 236 Date: 2004-04-30 20:31:57 -0700 (Fri, 30 Apr 2004) Author: ed
Log: Added dSlider control.
Changed: U trunk/ui/uiwx/classes/__init__.py U trunk/ui/uiwx/classes/dPageFrame.py U trunk/ui/uiwx/classes/dPemMixin.py
Diff: Modified: trunk/ui/uiwx/classes/__init__.py =================================================================== --- trunk/ui/uiwx/classes/__init__.py 2004-04-30 18:45:42 UTC (rev 235) +++ trunk/ui/uiwx/classes/__init__.py 2004-05-01 03:31:57 UTC (rev 236) @@ -31,6 +31,7 @@ from dPanel import dPanel from dPageFrame import dPageFrame from dPage import dPage +from dSlider import dSlider from dSpinner import dSpinner from dTextBox import dTextBox from dTreeView import dTreeView @@ -38,7 +39,7 @@ # Tell Dabo Designer what classes to put in the selection menu: __dClasses = [dCheckBox, dCommandButton, dEditBox, dForm, dFormDataNav, dFormMain, dGauge, dLabel, dPanel, - dPageFrame, dPage, dRadioGroup, dSpinner, dTextBox] + dPageFrame, dPage, dRadioGroup, dSlider, dSpinner, dTextBox] daboDesignerClasses = [] for __classRef in __dClasses:
Modified: trunk/ui/uiwx/classes/dPageFrame.py =================================================================== --- trunk/ui/uiwx/classes/dPageFrame.py 2004-04-30 18:45:42 UTC (rev 235) +++ trunk/ui/uiwx/classes/dPageFrame.py 2004-05-01 03:31:57 UTC (rev 236) @@ -1,10 +1,12 @@ import wx, dControlMixin +import dPage class dPageFrame(wx.Notebook, dControlMixin.dControlMixin): """ Create a container for an unlimited number of pages. """ def __init__(self, parent, id=-1, pos=wx.DefaultPosition, - size=wx.DefaultSize, style=0, name='dPageFrame'): + size=wx.DefaultSize, style=0, name='dPageFrame', + pages=7): self._baseClass = dPageFrame @@ -17,6 +19,11 @@ dControlMixin.dControlMixin.__init__(self, name) self.afterInit() # defined in dPemMixin + + if pages: + for i in range(0, pages): + self.AddPage(dPage.dPage(self), "Page " + str(i+1) ) + def afterInit(self):
Modified: trunk/ui/uiwx/classes/dPemMixin.py =================================================================== --- trunk/ui/uiwx/classes/dPemMixin.py 2004-04-30 18:45:42 UTC (rev 235) +++ trunk/ui/uiwx/classes/dPemMixin.py 2004-05-01 03:31:57 UTC (rev 236) @@ -92,7 +92,7 @@ # Some wx-specific props need to be initialized early. Let the designer know: d['preInitProperty'] = name in ('Alignment', 'BorderStyle', 'PasswordEntry', - 'Orientation') + 'Orientation', 'ShowLabels') return d
©2004 noreply AT paulmcnett DO.T com |
|