File: example.rst

package info (click to toggle)
ttkthemes 3.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,808 kB
  • sloc: tcl: 6,475; python: 773; makefile: 18
file content (14 lines) | stat: -rw-r--r-- 382 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Example
=======

Using ``ttkthemes`` is easiest through the usage of ``ThemedTk``. The
following example is written for Python 3.

.. code-block:: python

   from tkinter import ttk  # Normal Tkinter.* widgets are not themed!
   from ttkthemes import ThemedTk

   window = ThemedTk(theme="arc")
   ttk.Button(window, text="Quit", command=window.destroy).pack()
   window.mainloop()