summaryrefslogtreecommitdiffstats
path: root/ttkthemes/docs/example.rst
blob: 6472305fb0cb643c58ec4ccb54742cdd233d99f5 (plain)
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()