/usr/lib64/python2.6/Demo/tkinter/matt
NameSizeModeActions
00-HELLO-WORLD.py7240644editdlrm
00-HELLO-WORLD.pyc12990644editdlrm
00-HELLO-WORLD.pyo12990644editdlrm
animation-simple.py9390644editdlrm
animation-simple.pyc17200644editdlrm
animation-simple.pyo17200644editdlrm
animation-w-velocity-ctrl.py12010644editdlrm
animation-w-velocity-ctrl.pyc20270644editdlrm
animation-w-velocity-ctrl.pyo20270644editdlrm
bind-w-mult-calls-p-type.py15500644editdlrm
bind-w-mult-calls-p-type.pyc14010644editdlrm
bind-w-mult-calls-p-type.pyo14010644editdlrm
canvas-demo-simple.py7480644editdlrm
canvas-demo-simple.pyc14210644editdlrm
canvas-demo-simple.pyo14210644editdlrm
canvas-gridding.py22710644editdlrm
canvas-gridding.pyc23260644editdlrm
canvas-gridding.pyo23260644editdlrm
canvas-moving-or-creating.py24220644editdlrm
canvas-moving-or-creating.pyc25850644editdlrm
canvas-moving-or-creating.pyo25850644editdlrm
canvas-moving-w-mouse.py21260644editdlrm
canvas-moving-w-mouse.pyc24730644editdlrm
canvas-moving-w-mouse.pyo24730644editdlrm
canvas-mult-item-sel.py28410644editdlrm
canvas-mult-item-sel.pyc28080644editdlrm
canvas-mult-item-sel.pyo28080644editdlrm
canvas-reading-tag-info.py16780644editdlrm
canvas-reading-tag-info.pyc18600644editdlrm
canvas-reading-tag-info.pyo18600644editdlrm
canvas-w-widget-draw-el.py11780644editdlrm
canvas-w-widget-draw-el.pyc15050644editdlrm
canvas-w-widget-draw-el.pyo15050644editdlrm
canvas-with-scrollbars.py21080644editdlrm
canvas-with-scrollbars.pyc23630644editdlrm
canvas-with-scrollbars.pyo23630644editdlrm
dialog-box.py24400644editdlrm
dialog-box.pyc19780644editdlrm
dialog-box.pyo19780644editdlrm
entry-simple.py7290644editdlrm
entry-simple.pyc10760644editdlrm
entry-simple.pyo10760644editdlrm
entry-with-shared-variable.py17470644editdlrm
entry-with-shared-variable.pyc16400644editdlrm
entry-with-shared-variable.pyo16400644editdlrm
killing-window-w-wm.py12950644editdlrm
killing-window-w-wm.pyc14930644editdlrm
killing-window-w-wm.pyo14930644editdlrm
menu-all-types-of-entries.py91100644editdlrm
menu-all-types-of-entries.pyc49710644editdlrm
menu-all-types-of-entries.pyo49710644editdlrm
menu-simple.py32510644editdlrm
menu-simple.pyc19610644editdlrm
menu-simple.pyo19610644editdlrm
not-what-you-might-think-1.py6750644editdlrm
not-what-you-might-think-1.pyc13000644editdlrm
not-what-you-might-think-1.pyo13000644editdlrm
not-what-you-might-think-2.py7470644editdlrm
not-what-you-might-think-2.pyc13350644editdlrm
not-what-you-might-think-2.pyo13350644editdlrm
packer-and-placer-together.py12090644editdlrm
packer-and-placer-together.pyc13880644editdlrm
packer-and-placer-together.pyo13880644editdlrm
packer-simple.py8190644editdlrm
packer-simple.pyc14240644editdlrm
packer-simple.pyo14240644editdlrm
placer-simple.py10780644editdlrm
placer-simple.pyc12930644editdlrm
placer-simple.pyo12930644editdlrm
pong-demo-1.py15490644editdlrm
pong-demo-1.pyc21340644editdlrm
pong-demo-1.pyo21340644editdlrm
printing-coords-of-items.py24000644editdlrm
printing-coords-of-items.pyc25840644editdlrm
printing-coords-of-items.pyo25840644editdlrm
radiobutton-simple.py20110644editdlrm
radiobutton-simple.pyc18640644editdlrm
radiobutton-simple.pyo18640644editdlrm
README5130644editdlrm
rubber-band-box-demo-1.py21340644editdlrm
rubber-band-box-demo-1.pyc25720644editdlrm
rubber-band-box-demo-1.pyo25720644editdlrm
rubber-line-demo-1.py19190644editdlrm
rubber-line-demo-1.pyc22760644editdlrm
rubber-line-demo-1.pyo22760644editdlrm
slider-demo-1.py10000644editdlrm
slider-demo-1.pyc17120644editdlrm
slider-demo-1.pyo17120644editdlrm
subclass-existing-widgets.py6770644editdlrm
subclass-existing-widgets.pyc12340644editdlrm
subclass-existing-widgets.pyo12340644editdlrm
two-radio-groups.py37580644editdlrm
two-radio-groups.pyc21920644editdlrm
two-radio-groups.pyo21920644editdlrm
window-creation-more.py10200644editdlrm
window-creation-more.pyc17190644editdlrm
window-creation-more.pyo17190644editdlrm
window-creation-simple.py8150644editdlrm
window-creation-simple.pyc16420644editdlrm
window-creation-simple.pyo16420644editdlrm
window-creation-w-location.py13250644editdlrm
window-creation-w-location.pyc21040644editdlrm
window-creation-w-location.pyo21040644editdlrm
Edit: /usr/lib64/python2.6/Demo/tkinter/matt/canvas-with-scrollbars.py (2108B)
from Tkinter import * # This example program creates a scroling canvas, and demonstrates # how to tie scrollbars and canvses together. The mechanism # is analogus for listboxes and other widgets with # "xscroll" and "yscroll" configuration options. class Test(Frame): def printit(self): print "hi" def createWidgets(self): self.question = Label(self, text="Can Find The BLUE Square??????") self.question.pack() self.QUIT = Button(self, text='QUIT', background='red', height=3, command=self.quit) self.QUIT.pack(side=BOTTOM, fill=BOTH) spacer = Frame(self, height="0.25i") spacer.pack(side=BOTTOM) # notice that the scroll region (20" x 20") is larger than # displayed size of the widget (5" x 5") self.draw = Canvas(self, width="5i", height="5i", background="white", scrollregion=(0, 0, "20i", "20i")) self.draw.scrollX = Scrollbar(self, orient=HORIZONTAL) self.draw.scrollY = Scrollbar(self, orient=VERTICAL) # now tie the three together. This is standard boilerplate text self.draw['xscrollcommand'] = self.draw.scrollX.set self.draw['yscrollcommand'] = self.draw.scrollY.set self.draw.scrollX['command'] = self.draw.xview self.draw.scrollY['command'] = self.draw.yview # draw something. Note that the first square # is visible, but you need to scroll to see the second one. self.draw.create_rectangle(0, 0, "3.5i", "3.5i", fill="black") self.draw.create_rectangle("10i", "10i", "13.5i", "13.5i", fill="blue") # pack 'em up self.draw.scrollX.pack(side=BOTTOM, fill=X) self.draw.scrollY.pack(side=RIGHT, fill=Y) self.draw.pack(side=LEFT) def scrollCanvasX(self, *args): print "scrolling", args print self.draw.scrollX.get() def __init__(self, master=None): Frame.__init__(self, master) Pack.config(self) self.createWidgets() test = Test() test.mainloop()