/external/python/cpython2/Demo/tix/samples/ |
ComboBox.py | 5 # Tix Demonstration Program 8 # executed from the Tix demo program "tixwidgets.py": it must have a 16 import Tix 21 top = Tix.Frame(w, bd=1, relief=Tix.RAISED) 23 demo_month = Tix.StringVar() 24 demo_year = Tix.StringVar() 33 a = Tix.ComboBox(top, label="Month: ", dropdown=1, 46 b = Tix.ComboBox(top, label="Year: ", dropdown=0, 50 a.pack(side=Tix.TOP, anchor=Tix.W [all...] |
BtnBox.py | 5 # Tix Demonstration Program 8 # executed from the Tix demo program "tixwidgets.py": it must have a 18 import Tix 23 top = Tix.Label(w, padx=20, pady=10, bd=1, relief=Tix.RAISED, 24 anchor=Tix.CENTER, text='This dialog box is\n a demonstration of the\n tixButtonBox widget') 33 box = Tix.ButtonBox(w, orientation=Tix.HORIZONTAL) 38 box.pack(side=Tix.BOTTOM, fill=Tix.X [all...] |
NoteBook.py | 5 # Tix Demonstration Program 8 # executed from the Tix demo program "tixwidgets.py": it must have a 16 import Tix 24 prefix = Tix.OptionName(w) 31 w.option_add(prefix+'*TixControl*label.anchor', Tix.E) 37 nb = Tix.NoteBook(w, name='nb', ipadx=6, ipady=6) 48 nb.pack(expand=1, fill=Tix.BOTH, padx=5, pady=5 ,side=Tix.TOP) 57 f = Tix.Frame(tab) 58 common = Tix.Frame(tab [all...] |
OptMenu.py | 5 # Tix Demonstration Program 8 # executed from the Tix demo program "tixwidgets.py": it must have a 16 import Tix 24 demo_opt_from = Tix.StringVar() 25 demo_opt_to = Tix.StringVar() 27 top = Tix.Frame(w, bd=1, relief=Tix.RAISED) 29 from_file = Tix.OptionMenu(top, label="From File Format : ", 33 to_file = Tix.OptionMenu(top, label="To File Format : ", 50 from_file.pack(side=Tix.TOP, anchor=Tix.W, pady=3, padx=6 [all...] |
PanedWin.py | 5 # Tix Demonstration Program 8 # executed from the Tix demo program "tixwidgets.py": it must have a 18 import Tix 35 group = Tix.LabelEntry(w, label='Newsgroup:', options='entry.width 25') 37 pane = Tix.PanedWindow(w, orientation='vertical') 41 list = Tix.ScrolledListBox(p1) 44 text = Tix.ScrolledText(p2) 48 list.listbox.insert(Tix.END, " 12324 Re: Tkinter is good for your health") 49 list.listbox.insert(Tix.END, "+ 12325 Re: Tkinter is good for your health") 50 list.listbox.insert(Tix.END, "+ 12326 Re: Tix is even better for your health (Was: Tkinter is good...)" [all...] |
Control.py | 5 # Tix Demonstration Program 8 # executed from the Tix demo program "tixwidgets.py": it must have a 21 import Tix 37 demo_maker = Tix.StringVar() 38 demo_thrust = Tix.DoubleVar() 39 demo_num_engines = Tix.IntVar() 44 top = Tix.Frame(w, bd=1, relief=Tix.RAISED) 52 a = Tix.Control(top, label='Number of Engines: ', integer=1, 56 b = Tix.Control(top, label='Thrust: ', integer=0 [all...] |
SHList2.py | 5 # Tix Demonstration Program 8 # executed from the Tix demo program "tixwidget": it must have a 19 import Tix 39 top = Tix.Frame( w, relief=Tix.RAISED, bd=1) 44 top.a = Tix.ScrolledHList(top, options='hlist.columns 3 hlist.header 1' ) 45 top.a.pack( expand=1, fill=Tix.BOTH, padx=10, pady=10, side=Tix.TOP) 54 boldfont=hlist.tk.call('tix','option','get','bold_font') 58 style['header'] = Tix.DisplayStyle(Tix.TEXT, refwindow=hlist [all...] |
PopMenu.py | 5 # Tix Demonstration Program 8 # executed from the Tix demo program "tixwidgets.py": it must have a 15 import Tix 22 top = Tix.Frame(w, relief=Tix.RAISED, bd=1) 23 but = Tix.Button(top, text='Press the right mouse button over this button or its surrounding area') 24 but.pack(expand=1, fill=Tix.BOTH, padx=50, pady=50) 26 p = Tix.PopupMenu(top, title='Popup Test') 40 m1 = Tix.Menu(p.menu) 44 but.pack(side=Tix.TOP, padx=40, pady=50 [all...] |
Balloon.py | 5 # Tix Demonstration Program 8 # executed from the Tix demo program "tixwidgets.py": it must have a 18 import Tix 35 status = Tix.Label(w, width=40, relief=Tix.SUNKEN, bd=1) 36 status.pack(side=Tix.BOTTOM, fill=Tix.Y, padx=2, pady=1) 39 button1 = Tix.Button(w, text='Something Unexpected', 41 button2 = Tix.Button(w, text='Something Else Unexpected') 43 button1.pack(side=Tix.TOP, expand=1 [all...] |
SHList1.py | 5 # Tix Demonstration Program 8 # executed from the Tix demo program "tixwidgets.py": it must have a 16 import Tix 36 top = Tix.Frame( w, relief=Tix.RAISED, bd=1) 41 top.a = Tix.ScrolledHList(top) 42 top.a.pack( expand=1, fill=Tix.BOTH, padx=10, pady=10, side=Tix.TOP) 71 f=Tix.Frame(hlist, name='sep%d' % count, height=2, width=150, 72 bd=2, relief=Tix.SUNKEN [all...] |
Tree.py | 5 # Tix Demonstration Program 8 # executed from the Tix demo program "tixwidgets.py": it must have a 17 import Tix, os 20 top = Tix.Frame(w, relief=Tix.RAISED, bd=1) 21 tree = Tix.Tree(top, options='separator "/"') 22 tree.pack(expand=1, fill=Tix.BOTH, padx=10, pady=10, side=Tix.LEFT) 29 box = Tix.ButtonBox(w, orientation=Tix.HORIZONTAL [all...] |
DirTree.py | 5 # Tix Demonstration Program 8 # executed from the Tix demo program "tixwidgets.py": it must have a 19 import Tix, os, copy 40 # bg = root.tk.eval('tix option get bg') 43 top = Tix.Frame( w, relief=RAISED, bd=1) 49 top.dir = Tix.DirTree(top) 55 top.btn = Tix.Button(top, text = " >> ", pady = 0) 61 top.ent = Tix.LabelEntry(top, label="Installation Directory:", 82 box = Tix.ButtonBox (w, orientation='horizontal') 116 root=Tix.Tk( [all...] |
DirList.py | 5 # Tix Demonstration Program 8 # executed from the Tix demo program "tixwidgets.py": it must have a 19 import Tix, os, copy 40 # bg = root.tk.eval('tix option get bg') 43 top = Tix.Frame( w, relief=RAISED, bd=1) 49 top.dir = Tix.DirList(top) 55 top.btn = Tix.Button(top, text = " >> ", pady = 0) 61 top.ent = Tix.LabelEntry(top, label="Installation Directory:", 68 font = self.root.tk.eval('tix option get fixed_font') 78 # top.ent.entry.insert(0,'tix'+repr(self) [all...] |
CmpImg.py | 5 # Tix Demonstration Program 8 # executed from the Tix demo program "tixwidgets.py": it must have a 18 import Tix 147 w.img0 = Tix.Image('pixmap', data=network_pixmap) 149 w.img0 = Tix.Image('bitmap', data=network_bitmap) 150 w.img1 = Tix.Image('pixmap', data=hard_disk_pixmap) 152 w.img1 = Tix.Image('bitmap', data=hard_disk_bitmap) 154 hdd = Tix.Button(w, padx=4, pady=1, width=120) 155 net = Tix.Button(w, padx=4, pady=1, width=120) 162 # The tk.calls should be methods in Tix .. [all...] |
/external/python/cpython2/Demo/tix/ |
tixwidgets.py | 7 # For Tix, see http://tix.sourceforge.net 9 # This is a demo program of some of the Tix widgets available in Python. 10 # If you have installed Python & Tix properly, you can execute this as 15 import os, os.path, sys, Tix 33 self.useBalloons = Tix.StringVar() 59 w = Tix.Frame(top, bd=2, relief=RAISED) 60 file = Tix.Menubutton(w, text='File', underline=0, takefocus=0) 61 help = Tix.Menubutton(w, text='Help', underline=0, takefocus=0) 64 fm = Tix.Menu(file, tearoff=0 [all...] |
grid.py | 2 import Tix as tk
|
/external/python/cpython2/Doc/ |
conf.py | 153 r'Tix',
|
/external/python/cpython3/Doc/ |
conf.py | 157 r'Tix',
|