Lines Matching +full:introspection +full:- +full:subsystem
1 :mod:`tkinter` --- Python interface to Tcl/Tk
11 --------------
17 Running ``python -m tkinter`` from the command line should open a window
59 By Mark Roseman. (ISBN 978-1999149567)
61 …* `Python and Tkinter Programming <https://www.packtpub.com/product/python-gui-programming-with-tk…
62 By Alan Moore. (ISBN 978-1788835886)
64 * `Programming Python <https://learning-python.com/about-pp4e.html>`_
65 By Mark Lutz; has excellent coverage of Tkinter. (ISBN 978-0596158101)
68 …By John Ousterhout, inventor of Tcl/Tk, and Ken Jones; does not cover Tkinter. (ISBN 978-032133633…
72 ------------
76 documentation. Python's binary releases also ship an add-on module
81 it can be used on its own as a general-purpose programming language, it is
93 Tk is a `Tcl package <https://wiki.tcl-lang.org/37432>`_ implemented in C
116 ---------------
146 If ``True``, initialize the Tk subsystem. The :func:`tkinter.Tcl() <Tcl>`
154 be specified in the same way as the value for the -use option for
159 to a Tk frame or toplevel that has its -container option enabled.
182 *parent*/*child* reflects the tree-like relationship while
196 subsystem. This is most often useful when driving the Tcl interpreter in an
200 subsystem initialized) by calling its :meth:`loadtk` method.
236 A binary module that contains the low-level interface to Tcl/Tk.
252 (experimental) Drag-and-drop support for :mod:`tkinter`. This will
256 (deprecated) An older third-party Tcl/Tk package that adds several new
264 ----------------------
368 ttk::frame .frm -padding 10
370 grid [ttk::label .frm.lbl -text "Hello World!"] -column 0 -row 0
371 grid [ttk::button .frm.btn -text "Quit" -command "destroy ."] -column 1 -row 0
381 * Tcl widget options (like ``-text``) correspond to keyword arguments in
413 class, option, or method that you're using. Introspection, either in an
434 print(set(btn.configure().keys()) - set(frm.configure().keys()))
444 print(set(dir(btn)) - set(dir(frm)))
463 grid .frm.btn -column 0 -row 0
473 .frm.lbl configure -text "Goodbye"
504 ---------------
521 Tcl/Tk applications are normally event-driven, meaning that after initialization,
523 Because it is single-threaded, event handlers must respond quickly, otherwise they
524 will block other events from being processed. To avoid this, any long-running
536 * Tcl/Tk libraries can be built so they are not thread-aware. In this case,
545 them in separate threads and ensure you're running a thread-aware Tcl/Tk build.
557 ---------------
560 .. _tkinter-setting-options:
593 No distinction between standard and widget-specific options is made in this
602 string (for example, ``'relief'``) and whose values are 5-tuples.
606 of a shorthand option will return a 2-tuple, not 5-tuple. The 2-tuple passed
610 +-------+---------------------------------+--------------+
614 +-------+---------------------------------+--------------+
616 +-------+---------------------------------+--------------+
619 +-------+---------------------------------+--------------+
621 +-------+---------------------------------+--------------+
623 +-------+---------------------------------+--------------+
639 The packer is one of Tk's geometry-management mechanisms. Geometry managers
640 are used to specify the relative positioning of widgets within their container -
643 relationship specification - *above*, *to the left of*, *filling*, etc - and
659 The pack() method can be called with keyword-option/value pairs that control
684 A distance - designating internal padding on each side of the slave widget.
687 A distance - designating external padding on each side of the slave widget.
696 The current-value setting of some widgets (like text entry widgets) can be
736 self.entrythingy.bind('<Key-Return>',
781 myapp.master.title("My Do-Nothing Application")
798 There are eight built-in, named bitmaps: ``'error'``, ``'gray25'``,
847 This is a string with four space-delimited elements, each of which is a legal
862 .. _Bindings-and-Events:
882 :title-reference:`Tcl and the Tk Toolkit (2nd edition)`, for details).
907 +----+---------------------+----+---------------------+
911 +----+---------------------+----+---------------------+
913 +----+---------------------+----+---------------------+
915 +----+---------------------+----+---------------------+
917 +----+---------------------+----+---------------------+
919 +----+---------------------+----+---------------------+
921 +----+---------------------+----+---------------------+
923 +----+---------------------+----+---------------------+
925 +----+---------------------+----+---------------------+
991 The `Pillow <https://python-pillow.org/>`_ package adds support for
994 .. _tkinter-file-handlers:
997 -------------