/external/python/cpython3/Lib/tkinter/test/test_tkinter/ |
D | test_misc.py | 2 import tkinter 4 from tkinter.test.support import AbstractTkTest 11 self.assertIn("Widget", tkinter.__all__) 13 self.assertIn("CASCADE", tkinter.__all__) 14 self.assertIsNotNone(tkinter.CASCADE) 16 self.assertNotIn("re", tkinter.__all__) 17 self.assertNotIn("sys", tkinter.__all__) 18 self.assertNotIn("constants", tkinter.__all__) 20 self.assertNotIn("_tkerror", tkinter.__all__) 22 self.assertNotIn("wantobjects", tkinter.__all__) [all …]
|
D | test_images.py | 2 import tkinter 4 from tkinter.test.support import AbstractTkTest, requires_tcl 30 image = tkinter.BitmapImage('::img::test', master=self.root, 44 image = tkinter.BitmapImage('::img::test', master=self.root, 60 image = tkinter.BitmapImage('::img::test', master=self.root) 76 image = tkinter.BitmapImage('::img::test', master=self.root) 90 image = tkinter.BitmapImage('::img::test', master=self.root) 96 image = tkinter.BitmapImage('::img::test', master=self.root) 112 return tkinter.PhotoImage('::img::test', master=self.root, 116 if tkinter.TkVersion >= 8.6 and self.wantobjects: [all …]
|
D | test_text.py | 2 import tkinter 4 from tkinter.test.support import AbstractTkTest 12 self.text = tkinter.Text(self.root) 30 self.assertRaises(tkinter.TclError, text.search, None, '1.0') 31 self.assertRaises(tkinter.TclError, text.search, 'a', None) 32 self.assertRaises(tkinter.TclError, text.search, None, None) 35 self.assertRaises(tkinter.TclError, text.search, '', 0)
|
D | test_geometry_managers.py | 3 import tkinter 4 from tkinter import TclError 7 from tkinter.test.support import pixels_conv, tcl_version, requires_tcl 8 from tkinter.test.widget_tests import AbstractWidgetTest 18 pack = tkinter.Toplevel(self.root, name='pack') 21 a = tkinter.Frame(pack, name='a', width=20, height=40, bg='red') 22 b = tkinter.Frame(pack, name='b', width=50, height=30, bg='blue') 23 c = tkinter.Frame(pack, name='c', width=80, height=80, bg='green') 24 d = tkinter.Frame(pack, name='d', width=40, height=30, bg='yellow') 284 t = tkinter.Toplevel(self.root, width=300, height=200, bd=0) [all …]
|
D | test_widgets.py | 2 import tkinter 3 from tkinter import TclError 8 from tkinter.test.support import (tcl_version, requires_tcl, 10 from tkinter.test.widget_tests import ( 70 return tkinter.Toplevel(self.root, **kwargs) 74 menu = tkinter.Menu(self.root) 110 return tkinter.Frame(self.root, **kwargs) 125 return tkinter.LabelFrame(self.root, **kwargs) 136 label = tkinter.Label(self.root, text='Mupp', name='foo') 163 return tkinter.Label(self.root, **kwargs) [all …]
|
/external/python/cpython3/Doc/library/ |
D | tk.rst | 15 using the :mod:`tkinter` package, and its extension, the :mod:`tkinter.tix` and 16 the :mod:`tkinter.ttk` modules. 18 The :mod:`tkinter` package is a thin object-oriented layer on top of Tcl/Tk. To 19 use :mod:`tkinter`, you don't need to write Tcl code, but you will need to 21 :mod:`tkinter` is a set of wrappers that implement the Tk widgets as Python 25 :mod:`tkinter`'s chief virtues are that it is fast, and that it usually comes 28 others. :mod:`tkinter` is also famous for having an outdated look and feel, 35 tkinter.rst 36 tkinter.colorchooser.rst 37 tkinter.font.rst [all …]
|
D | tkinter.colorchooser.rst | 1 :mod:`tkinter.colorchooser` --- Color choosing dialog 4 .. module:: tkinter.colorchooser 8 **Source code:** :source:`Lib/tkinter/colorchooser.py` 12 The :mod:`tkinter.colorchooser` module provides the :class:`Chooser` class 15 the :class:`~tkinter.commondialog.Dialog` class. 28 Module :mod:`tkinter.commondialog`
|
D | dialog.rst | 4 :mod:`tkinter.simpledialog` --- Standard Tkinter input dialogs 7 .. module:: tkinter.simpledialog 11 **Source code:** :source:`Lib/tkinter/simpledialog.py` 15 The :mod:`tkinter.simpledialog` module contains convenience classes and 42 :mod:`tkinter.filedialog` --- File selection dialogs 45 .. module:: tkinter.filedialog 49 **Source code:** :source:`Lib/tkinter/filedialog.py` 53 The :mod:`tkinter.filedialog` module provides classes and factory functions for 207 :mod:`tkinter.commondialog` --- Dialog window templates 210 .. module:: tkinter.commondialog [all …]
|
D | tkinter.rst | 1 :mod:`tkinter` --- Python interface to Tcl/Tk 4 .. module:: tkinter 9 **Source code:** :source:`Lib/tkinter/__init__.py` 13 The :mod:`tkinter` package ("Tk interface") is the standard Python interface to 14 the Tk GUI toolkit. Both Tk and :mod:`tkinter` are available on most Unix 18 Running ``python -m tkinter`` from the command line should open a window 19 demonstrating a simple Tk interface, letting you know that :mod:`tkinter` is 38 Online reference for tkinter supported by effbot.org. 46 `Python and Tkinter Programming <https://www.manning.com/books/python-and-tkinter-programming>`_ 52 Most commands are available as :mod:`tkinter` or :mod:`tkinter.ttk` classes. [all …]
|
D | tkinter.messagebox.rst | 1 :mod:`tkinter.messagebox` --- Tkinter message prompts 4 .. module:: tkinter.messagebox 8 **Source code:** :source:`Lib/tkinter/messagebox.py` 12 The :mod:`tkinter.messagebox` module provides a template base class as well as
|
D | tkinter.scrolledtext.rst | 1 :mod:`tkinter.scrolledtext` --- Scrolled Text Widget 4 .. module:: tkinter.scrolledtext 10 **Source code:** :source:`Lib/tkinter/scrolledtext.py` 14 The :mod:`tkinter.scrolledtext` module provides a class of the same name which
|
/external/python/cpython3/Lib/tkinter/test/ |
D | support.py | 3 import tkinter 10 cls._old_support_default_root = tkinter._support_default_root 12 tkinter.NoDefaultRoot() 13 cls.root = tkinter.Tk() 20 except tkinter.TclError: 28 tkinter._default_root = None 29 tkinter._support_default_root = cls._old_support_default_root 40 if getattr(tkinter, '_default_root', None): 41 tkinter._default_root.update_idletasks() 42 tkinter._default_root.destroy() [all …]
|
/external/python/cpython2/Lib/lib-tk/test/test_ttk/ |
D | support.py | 4 import Tkinter as tkinter namespace 10 cls._old_support_default_root = tkinter._support_default_root 12 tkinter.NoDefaultRoot() 13 cls.root = tkinter.Tk() 20 except tkinter.TclError: 28 tkinter._default_root = None 29 tkinter._support_default_root = cls._old_support_default_root 40 if getattr(tkinter, '_default_root', None): 41 tkinter._default_root.update_idletasks() 42 tkinter._default_root.destroy() [all …]
|
D | test_widgets.py | 2 import Tkinter as tkinter namespace 76 self.assertRaises(tkinter.TclError, self.widget.identify, None, 5) 77 self.assertRaises(tkinter.TclError, self.widget.identify, 5, None) 78 self.assertRaises(tkinter.TclError, self.widget.identify, 5, '') 105 self.assertRaises(tkinter.TclError, self.widget.instate, 107 self.assertRaises(tkinter.TclError, self.widget.instate, 162 image = tkinter.PhotoImage(master=self.root, name='image1') 163 image2 = tkinter.PhotoImage(master=self.root, name='image2') 264 self.assertRaises(tkinter.TclError, cbtn.tk.globalgetvar, 325 self.assertRaises(tkinter.TclError, self.entry.bbox, 'noindex') [all …]
|
D | test_extensions.py | 3 import Tkinter as tkinter namespace 21 self.assertRaises(tkinter.TclError, x.tk.globalgetvar, var) 24 myvar = tkinter.DoubleVar(self.root) 33 self.assertRaises(tkinter.TclError, x.tk.globalgetvar, name) 36 myvar = tkinter.IntVar(self.root) 47 self.assertNotEqual(sys.last_type, tkinter.TclError) 52 with swap_attr(tkinter, '_default_root', None), \ 53 swap_attr(tkinter, '_support_default_root', True): 56 self.assertIsNotNone(tkinter._default_root) 57 self.assertEqual(x.master, tkinter._default_root) [all …]
|
D | test_style.py | 2 import Tkinter as tkinter namespace 47 self.assertRaises(tkinter.TclError, style.layout, 'NotALayout') 64 self.assertRaises(tkinter.TclError, style.layout, 'Treeview', 69 self.assertRaises(tkinter.TclError, self.style.theme_use,
|
/external/python/cpython3/Lib/tkinter/test/test_ttk/ |
D | test_extensions.py | 3 import tkinter 4 from tkinter import ttk 6 from tkinter.test.support import AbstractTkTest, destroy_default_root 21 self.assertRaises(tkinter.TclError, x.tk.globalgetvar, var) 24 myvar = tkinter.DoubleVar(self.root) 33 self.assertRaises(tkinter.TclError, x.tk.globalgetvar, name) 36 myvar = tkinter.IntVar(self.root) 47 self.assertNotEqual(sys.last_type, tkinter.TclError) 52 with swap_attr(tkinter, '_default_root', None), \ 53 swap_attr(tkinter, '_support_default_root', True): [all …]
|
D | test_widgets.py | 2 import tkinter 3 from tkinter import ttk, TclError 7 from tkinter.test.test_ttk.test_functions import MockTclObj 8 from tkinter.test.support import (AbstractTkTest, tcl_version, get_tk_patchlevel, 10 from tkinter.test.widget_tests import (add_standard_options, noconv, 73 self.assertRaises(tkinter.TclError, self.widget.identify, None, 5) 74 self.assertRaises(tkinter.TclError, self.widget.identify, 5, None) 75 self.assertRaises(tkinter.TclError, self.widget.identify, 5, '') 102 self.assertRaises(tkinter.TclError, self.widget.instate, 104 self.assertRaises(tkinter.TclError, self.widget.instate, [all …]
|
/external/python/cpython2/Lib/lib-tk/test/test_tkinter/ |
D | test_images.py | 2 import Tkinter as tkinter namespace 31 image = tkinter.BitmapImage('::img::test', master=self.root, 45 image = tkinter.BitmapImage('::img::test', master=self.root, 61 image = tkinter.BitmapImage('::img::test', master=self.root) 77 image = tkinter.BitmapImage('::img::test', master=self.root) 91 image = tkinter.BitmapImage('::img::test', master=self.root) 97 image = tkinter.BitmapImage('::img::test', master=self.root) 113 return tkinter.PhotoImage('::img::test', master=self.root, 117 if tkinter.TkVersion >= 8.6 and self.wantobjects: 120 return tkinter._join(args) [all …]
|
D | test_text.py | 2 import Tkinter as tkinter namespace 12 self.text = tkinter.Text(self.root) 30 self.assertRaises(tkinter.TclError, text.search, None, '1.0') 31 self.assertRaises(tkinter.TclError, text.search, 'a', None) 32 self.assertRaises(tkinter.TclError, text.search, None, None) 35 self.assertRaises(tkinter.TclError, text.search, '', 0)
|
D | test_misc.py | 2 import Tkinter as tkinter namespace 27 with self.assertRaises(tkinter.TclError): 42 with self.assertRaises(tkinter.TclError): 59 with self.assertRaises(tkinter.TclError): 74 with self.assertRaises(tkinter.TclError): 97 with self.assertRaises(tkinter.TclError): 100 with self.assertRaises(tkinter.TclError): 112 with self.assertRaises(tkinter.TclError): 115 with self.assertRaises(tkinter.TclError):
|
D | test_widgets.py | 2 import Tkinter as tkinter namespace 67 return tkinter.Toplevel(self.root, **kwargs) 71 menu = tkinter.Menu(self.root) 107 return tkinter.Frame(self.root, **kwargs) 122 return tkinter.LabelFrame(self.root, **kwargs) 133 label = tkinter.Label(self.root, text='Mupp', name='foo') 160 return tkinter.Label(self.root, **kwargs) 177 return tkinter.Button(self.root, **kwargs) 201 return tkinter.Checkbutton(self.root, **kwargs) 229 return tkinter.Radiobutton(self.root, **kwargs) [all …]
|
D | test_geometry_managers.py | 3 import Tkinter as tkinter namespace 18 pack = tkinter.Toplevel(self.root, name='pack') 21 a = tkinter.Frame(pack, name='a', width=20, height=40, bg='red') 22 b = tkinter.Frame(pack, name='b', width=50, height=30, bg='blue') 23 c = tkinter.Frame(pack, name='c', width=80, height=80, bg='green') 24 d = tkinter.Frame(pack, name='d', width=40, height=30, bg='yellow') 284 t = tkinter.Toplevel(self.root, width=300, height=200, bd=0) 286 f = tkinter.Frame(t, width=154, height=84, bd=2, relief='raised') 288 f2 = tkinter.Frame(t, width=30, height=60, bd=2, relief='raised') 376 f = tkinter.Frame(self.root) [all …]
|
/external/python/cpython3/Lib/tkinter/ |
D | font.py | 7 import tkinter 72 root = tkinter._default_root 87 raise tkinter._tkinter.TclError( 183 root = tkinter._default_root 193 root = tkinter._default_root 202 root = tkinter.Tk() 224 w = tkinter.Label(root, text="Hello, world", font=f) 227 w = tkinter.Button(root, text="Quit!", command=root.destroy) 235 tkinter.mainloop()
|
/external/python/cpython3/Lib/test/ |
D | test_ttk_guionly.py | 10 import tkinter 12 from tkinter import ttk 13 from tkinter.test import runtktests 17 root = tkinter.Tk()
|