Searched defs:ttk (Results 1 - 23 of 23) sorted by relevance

/external/python/cpython2/Demo/tkinter/ttk/
H A Dcombo_themes.py6 import ttk namespace
8 class App(ttk.Frame):
10 ttk.Frame.__init__(self)
12 self.style = ttk.Style()
27 themes_combo = ttk.Combobox(self, values=themes, state="readonly",
H A Dlistbox_scrollcmd.py5 grid [ttk::scrollbar .s -command ".l yview" -orient vertical] -column 1 -row 0 -sticky ns
6 grid [ttk::label .stat -text "Status message here" -anchor w] -column 0 -row 1 -sticky we
7 grid [ttk::sizegrip .sz] -column 1 -row 1 -sticky se
14 import ttk namespace
21 s = ttk.Scrollbar(command=l.yview, orient='vertical')
25 stat = ttk.Label(text="Status message here", anchor='w')
28 sz = ttk.Sizegrip()
H A Dmac_searchentry.py6 import ttk namespace
55 style = ttk.Style()
72 e1 = ttk.Entry(style="Search.entry", width=20)
73 e2 = ttk.Entry(style="Search.entry", width=20)
H A Dplastik_theme.py24 import ttk namespace
48 style = ttk.Style()
H A Droundframe.py5 import ttk namespace
87 style = ttk.Style()
95 frame = ttk.Frame(style="RoundedFrame", padding=10)
98 frame2 = ttk.Frame(style="RoundedFrame", padding=10)
101 entry = ttk.Entry(frame, text='Test')
H A Dtheme_selector.py8 import ttk namespace
10 class App(ttk.Frame):
12 ttk.Frame.__init__(self, borderwidth=3)
14 self.style = ttk.Style()
29 themes_lbl = ttk.Label(self, text="Themes")
32 self.themes_combo = ttk.Combobox(self, values=themes, state="readonly")
36 change_btn = ttk.Button(self, text='Change Theme',
39 theme_change_checkbtn = ttk.Checkbutton(self,
H A Dwidget_state.py2 import ttk namespace
14 class App(ttk.Frame):
16 ttk.Frame.__init__(self, borderwidth=6)
19 self.style = ttk.Style()
64 btn = ttk.Button(self, text='Enter states and watch')
66 entry = ttk.Entry(self, cursor='xterm', validate="key")
H A Ddirbrowser.py8 import ttk namespace
68 vsb = ttk.Scrollbar(orient="vertical")
69 hsb = ttk.Scrollbar(orient="horizontal")
71 tree = ttk.Treeview(columns=("fullpath", "type", "size"),
H A Dnotebook_closebtn.py7 import ttk namespace
18 style = ttk.Style()
67 # create a ttk notebook with our custom style, and add some tabs to it
68 nb = ttk.Notebook(width=200, height=200, style="ButtonNotebook")
H A Dtreeview_multicolumn.py4 import ttk namespace
46 msg = ttk.Label(wraplength="4i", justify="left", anchor="n",
58 container = ttk.Frame()
63 self.tree = ttk.Treeview(columns=tree_columns, show="headings")
64 vsb = ttk.Scrollbar(orient="vertical", command=self.tree.yview)
65 hsb = ttk.Scrollbar(orient="horizontal", command=self.tree.xview)
H A Dttkcalendar.py2 Simple calendar using ttk Treeview together with calendar and datetime
8 import ttk namespace
17 class Calendar(ttk.Frame):
30 # remove custom options from kw before initializating ttk.Frame
41 ttk.Frame.__init__(self, master, **kw)
68 ttk.Frame.__setitem__(self, item, value)
78 r = ttk.tclobjs_to_py({item: ttk.Frame.__getitem__(self, item)})
82 # custom ttk styles
83 style = ttk
[all...]
/external/python/cpython3/Lib/test/
H A Dtest_ttk_guionly.py12 from tkinter import ttk namespace
18 button = ttk.Button(root)
22 # assuming ttk is not available
23 raise unittest.SkipTest("ttk not available: %s" % msg)
/external/python/cpython2/Lib/lib-tk/test/test_ttk/
H A Dtest_style.py3 import ttk namespace
13 self.style = ttk.Style(self.root)
H A Dtest_extensions.py4 import ttk namespace
18 x = ttk.LabeledScale(self.root)
26 x = ttk.LabeledScale(self.root, variable=myvar)
38 x = ttk.LabeledScale(self.root, variable=myvar)
45 ttk.LabeledScale(self.root, variable=myvar)
55 x = ttk.LabeledScale()
66 x = ttk.LabeledScale(master)
76 x = ttk.LabeledScale(self.root, from_=pair[0])
79 x = ttk.LabeledScale(self.root, from_='2.5')
82 x = ttk
[all...]
H A Dtest_functions.py4 import ttk namespace
47 self.assertFalse(ttk._format_optdict({}))
51 ttk._format_optdict({'fg': 'blue', 'padding': [1, 2, 3, 4]}),
56 ttk._format_optdict({'test': (1, 2, '', 0)}),
61 ttk._format_optdict({'test': {'left': 'as is'}}),
66 ttk._format_optdict(
79 check_against(ttk._format_optdict(opts), {u'-αβγ': True, u'-á': False})
85 ttk._format_optdict(
89 ttk._format_optdict(
95 ttk
[all...]
H A Dtest_widgets.py4 import ttk namespace
59 """Tests methods available in every ttk widget."""
63 self.widget = ttk.Button(self.root, width=0, text="Text")
130 return ttk.Frame(self.root, **kwargs)
143 return ttk.LabelFrame(self.root, **kwargs)
154 label = ttk.Label(self.root, text='Mupp', name='foo')
201 return ttk.Label(self.root, **kwargs)
219 return ttk.Button(self.root, **kwargs)
227 btn = ttk.Button(self.root, command=lambda: success.append(1))
244 return ttk
[all...]
/external/python/cpython2/Lib/test/
H A Dtest_ttk_guionly.py17 import ttk namespace
23 button = ttk.Button(root)
27 # assuming ttk is not available
28 raise unittest.SkipTest("ttk not available: %s" % msg)
/external/python/cpython3/Lib/idlelib/idle_test/
H A Dtest_editmenu.py8 from tkinter import ttk namespace
24 cls.tentry = ttk.Entry(root)
/external/python/cpython3/Lib/tkinter/test/test_ttk/
H A Dtest_style.py3 from tkinter import ttk namespace
13 self.style = ttk.Style(self.root)
H A Dtest_extensions.py4 from tkinter import ttk namespace
18 x = ttk.LabeledScale(self.root)
26 x = ttk.LabeledScale(self.root, variable=myvar)
38 x = ttk.LabeledScale(self.root, variable=myvar)
45 ttk.LabeledScale(self.root, variable=myvar)
55 x = ttk.LabeledScale()
66 x = ttk.LabeledScale(master)
75 x = ttk.LabeledScale(self.root, from_=pair[0])
78 x = ttk.LabeledScale(self.root, from_=None)
83 x = ttk
[all...]
H A Dtest_functions.py3 from tkinter import ttk namespace
46 self.assertFalse(ttk._format_optdict({}))
50 ttk._format_optdict({'fg': 'blue', 'padding': [1, 2, 3, 4]}),
55 ttk._format_optdict({'test': (1, 2, '', 0)}),
60 ttk._format_optdict({'test': {'left': 'as is'}}),
65 ttk._format_optdict(
78 check_against(ttk._format_optdict(opts), {'-αβγ': True, '-á': False})
84 ttk._format_optdict(
88 ttk._format_optdict(
94 ttk
[all...]
H A Dtest_widgets.py3 from tkinter import ttk, TclError namespace
57 """Tests methods available in every ttk widget."""
61 self.widget = ttk.Button(self.root, width=0, text="Text")
128 return ttk.Frame(self.root, **kwargs)
141 return ttk.LabelFrame(self.root, **kwargs)
152 label = ttk.Label(self.root, text='Mupp', name='foo')
199 return ttk.Label(self.root, **kwargs)
217 return ttk.Button(self.root, **kwargs)
225 btn = ttk.Button(self.root, command=lambda: success.append(1))
242 return ttk
[all...]
/external/python/cpython2/Lib/lib-tk/test/test_tkinter/
H A Dtest_images.py3 import ttk namespace

Completed in 594 milliseconds