diff options
Diffstat (limited to 'Mac/IDE scripts/Widget demos/ScrollbarWindow.py')
-rw-r--r-- | Mac/IDE scripts/Widget demos/ScrollbarWindow.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Mac/IDE scripts/Widget demos/ScrollbarWindow.py b/Mac/IDE scripts/Widget demos/ScrollbarWindow.py new file mode 100644 index 0000000..5fc1b96 --- /dev/null +++ b/Mac/IDE scripts/Widget demos/ScrollbarWindow.py @@ -0,0 +1,17 @@ +import W + +# make a non-sizable window +#window = W.Window((200, 200), "Fixed Size") + +# make a sizable window +window = W.Window((200, 300), "Variable Size!", minsize = (200, 200)) + +# make some edit text widgets +# a scrollbar +window.hbar = W.Scrollbar((-1, -15, -14, 16), max = 100) +window.vbar = W.Scrollbar((-15, -1, 16, -14), max = 100) +#window.vbar = W.Scrollbar((-15, -1, 1, -14), max = 100) + + +# open the window +window.open() |