projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test program improvements (patch 927429)
[wxWidgets.git]
/
wxPython
/
demo
/
SpinCtrl.py
diff --git
a/wxPython/demo/SpinCtrl.py
b/wxPython/demo/SpinCtrl.py
index 427be323262240e08004f4528d5d80198292760f..23d20cb31f7ed75eaf708562bc2c54e22f6b0e24 100644
(file)
--- a/
wxPython/demo/SpinCtrl.py
+++ b/
wxPython/demo/SpinCtrl.py
@@
-1,7
+1,3
@@
-# 11/21/2003 - Jeff Grimmett (grimmtooth@softhome.net)
-#
-# o Updated for wx namespace
-#
import wx
import wx
@@
-13,11
+9,10
@@
class TestPanel(wx.Panel):
self.log = log
self.count = 0
self.log = log
self.count = 0
- wx.StaticText(self, -1, "This example uses the wxSpinCtrl control.", (45, 15))
+ wx.StaticText(self, -1, "This example uses the wx
.
SpinCtrl control.", (45, 15))
sc = wx.SpinCtrl(self, -1, "", (30, 50), (80, -1))
sc.SetRange(1,100)
sc.SetValue(5)
sc = wx.SpinCtrl(self, -1, "", (30, 50), (80, -1))
sc.SetRange(1,100)
sc.SetValue(5)
- #sc.Enable(False)
#----------------------------------------------------------------------
#----------------------------------------------------------------------
@@
-30,9
+25,9
@@
def runTest(frame, nb, log):
overview = """\
overview = """\
-wx
SpinCtrl combines wxTextCtrl and wx
SpinButton in one control.
+wx
.SpinCtrl combines wx.TextCtrl and wx.
SpinButton in one control.
-Portable programs should try to use
wxSpinCtrl instead as wx
SpinButton is not
+Portable programs should try to use
this control as wx.
SpinButton is not
implemented for all platforms (Win32 and GTK only currently).
NB: the range supported by this control depends on the platform
implemented for all platforms (Win32 and GTK only currently).
NB: the range supported by this control depends on the platform
@@
-47,4
+42,4
@@
range is supported.
if __name__ == '__main__':
import sys,os
import run
if __name__ == '__main__':
import sys,os
import run
- run.main(['', os.path.basename(sys.argv[0])])
+ run.main(['', os.path.basename(sys.argv[0])]
+ sys.argv[1:]
)