/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/radiobutton-simple.py (2011B)
from Tkinter import * # This is a demo program that shows how to # create radio buttons and how to get other widgets to # share the information in a radio button. # # There are other ways of doing this too, but # the "variable" option of radiobuttons seems to be the easiest. # # note how each button has a value it sets the variable to as it gets hit. class Test(Frame): def printit(self): print "hi" def createWidgets(self): self.flavor = StringVar() self.flavor.set("chocolate") self.radioframe = Frame(self) self.radioframe.pack() # 'text' is the label # 'variable' is the name of the variable that all these radio buttons share # 'value' is the value this variable takes on when the radio button is selected # 'anchor' makes the text appear left justified (default is centered. ick) self.radioframe.choc = Radiobutton( self.radioframe, text="Chocolate Flavor", variable=self.flavor, value="chocolate", anchor=W) self.radioframe.choc.pack(fill=X) self.radioframe.straw = Radiobutton( self.radioframe, text="Strawberry Flavor", variable=self.flavor, value="strawberry", anchor=W) self.radioframe.straw.pack(fill=X) self.radioframe.lemon = Radiobutton( self.radioframe, text="Lemon Flavor", variable=self.flavor, value="lemon", anchor=W) self.radioframe.lemon.pack(fill=X) # this is a text entry that lets you type in the name of a flavor too. self.entry = Entry(self, textvariable=self.flavor) self.entry.pack(fill=X) self.QUIT = Button(self, text='QUIT', foreground='red', command=self.quit) self.QUIT.pack(side=BOTTOM, fill=BOTH) def __init__(self, master=None): Frame.__init__(self, master) Pack.config(self) self.createWidgets() test = Test() test.mainloop()