mirror of
https://github.com/python/cpython.git
synced 2025-07-30 22:54:16 +00:00
Initial checkin of IDE scripts. (jvr)
This commit is contained in:
parent
b7ad821f02
commit
a840fca155
19 changed files with 334 additions and 0 deletions
17
Mac/IDE scripts/Widget demos/ScrollbarWindow.py
Normal file
17
Mac/IDE scripts/Widget demos/ScrollbarWindow.py
Normal file
|
@ -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()
|
Loading…
Add table
Add a link
Reference in a new issue