projects
/
wxWidgets.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Adding label editing to native OS X listctrl.
[wxWidgets.git]
/
wxPython
/
samples
/
wxPIA_book
/
Chapter-07
/
spinner.py
1
import
wx
2
3
class
SpinnerFrame
(
wx
.
Frame
):
4
def
__init__
(
self
):
5
wx
.
Frame
.__
init
__
(
self
,
None
, -
1
,
'Spinner Example'
,
6
size
=(
100
,
100
))
7
panel
=
wx
.
Panel
(
self
, -
1
)
8
sc
=
wx
.
SpinCtrl
(
panel
, -
1
,
""
, (
30
,
20
), (
80
, -
1
))
9
sc
.
SetRange
(
1
,
100
)
10
sc
.
SetValue
(
5
)
11
12
if
__name__
==
'__main__'
:
13
app
=
wx
.
PySimpleApp
()
14
SpinnerFrame
().
Show
()
15
app
.
MainLoop
()