Update of /cvsroot/pythoncard/PythonCard/samples/widgets
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14680/samples/widgets
Modified Files:
widgets.py widgets.rsrc.py
Log Message:
added ToggleButton component
Index: widgets.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/samples/widgets/widgets.py,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** widgets.py 5 May 2004 16:53:49 -0000 1.38
--- widgets.py 6 May 2004 20:13:29 -0000 1.39
***************
*** 113,116 ****
--- 113,117 ----
self.components.txtStaticText.foregroundColor = color
self.components.chkCheckBox.foregroundColor = color
+ self.components.chkToggleButton.foregroundColor = color
self.components.radRadioGroup.foregroundColor = color
self.components.popChoice.foregroundColor = color
Index: widgets.rsrc.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/samples/widgets/widgets.rsrc.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** widgets.rsrc.py 5 May 2004 16:53:49 -0000 1.20
--- widgets.rsrc.py 6 May 2004 20:13:29 -0000 1.21
***************
*** 5,8 ****
--- 5,9 ----
'name':'bgWidgets',
'title':'Widgets Test',
+ 'position':(5, 5),
'size':(700, 600),
***************
*** 28,31 ****
--- 29,45 ----
'components': [
+ {'type':'ToggleButton',
+ 'name':'chkToggleButton',
+ 'position':(100, 225),
+ 'size':(85, -1),
+ 'label':'ToggleButton',
+ },
+
+ {'type':'StaticText',
+ 'name':'labelToggleButton',
+ 'position':(5, 230),
+ 'text':'ToggleButton:',
+ },
+
{'type':'StaticText',
'name':'labelBitmapCanvas',
***************
*** 39,43 ****
'size':(112, 50),
'backgroundColor':(255, 255, 255),
- 'thickness':1,
},
--- 53,56 ----
***************
*** 78,82 ****
'name':'spnSpinner',
'position':(310, 450),
- 'size':(-1, 21),
'max':100,
'min':1,
--- 91,94 ----
***************
*** 93,97 ****
'name':'gagGauge',
'position':(310, 404),
! 'size':(128, 28),
'layout':'horizontal',
'max':100,
--- 105,109 ----
'name':'gagGauge',
'position':(310, 404),
! 'size':(128, -1),
'layout':'horizontal',
'max':100,
***************
*** 102,105 ****
--- 114,118 ----
'name':'calCalendar',
'position':(299, 200),
+ 'font':{'faceName': 'Arial', 'family': 'sansSerif', 'size': 8},
},
***************
*** 113,117 ****
'name':'cmbComboBox',
'position':(311, 364),
! 'size':(125, 21),
'items':['one', 'two', 'three'],
'stringSelection':'two',
--- 126,130 ----
'name':'cmbComboBox',
'position':(311, 364),
! 'size':(125, -1),
'items':['one', 'two', 'three'],
'stringSelection':'two',
***************
*** 142,146 ****
'name':'chkEnabled',
'position':(500, 30),
! 'checked':1,
'label':'Enabled',
},
--- 155,159 ----
'name':'chkEnabled',
'position':(500, 30),
! 'checked':True,
'label':'Enabled',
},
***************
*** 149,153 ****
'name':'chkVisible',
'position':(500, 50),
! 'checked':1,
'label':'Visible',
},
--- 162,166 ----
'name':'chkVisible',
'position':(500, 50),
! 'checked':True,
'label':'Visible',
},
***************
*** 156,160 ****
'name':'chkEditable',
'position':(500, 70),
! 'checked':1,
'label':'Editable',
},
--- 169,173 ----
'name':'chkEditable',
'position':(500, 70),
! 'checked':True,
'label':'Editable',
},
***************
*** 216,220 ****
{'type':'StaticText',
'name':'labelStaticText',
! 'position':(5, 200),
'text':'StaticText:',
},
--- 229,233 ----
{'type':'StaticText',
'name':'labelStaticText',
! 'position':(5, 170),
'text':'StaticText:',
},
***************
*** 222,226 ****
{'type':'StaticText',
'name':'labelCheckBox',
! 'position':(5, 230),
'text':'CheckBox:',
},
--- 235,239 ----
{'type':'StaticText',
'name':'labelCheckBox',
! 'position':(5, 200),
'text':'CheckBox:',
},
***************
*** 303,307 ****
{'type':'StaticText',
'name':'txtStaticText',
! 'position':(100, 200),
'text':'StaticText',
},
--- 316,320 ----
{'type':'StaticText',
'name':'txtStaticText',
! 'position':(100, 170),
'text':'StaticText',
},
***************
*** 309,313 ****
{'type':'CheckBox',
'name':'chkCheckBox',
! 'position':(100, 230),
'label':'CheckBox',
},
--- 322,326 ----
{'type':'CheckBox',
'name':'chkCheckBox',
! 'position':(100, 200),
'label':'CheckBox',
},
***************
*** 326,330 ****
'name':'popChoice',
'position':(100, 350),
- 'size':(-1, 21),
'items':['one', 'two', 'three'],
'stringSelection':'two',
--- 339,342 ----
***************
*** 358,362 ****
'name':'imgImageButton',
'position':(385, 110),
- 'size':(55, 17),
'border':'transparent',
'file':'edit.gif',
--- 370,373 ----
|