===================== Putting on the Style! ===================== .. topic:: Purpose Ever wanted to give your application a more "professional" look, or just wanted to jazz up your widgets, well ever since Tkinter added their themed module ttk you can do just that and quite easily too. .. sidebar:: Advanced Programmers You will probably find that you only need to skim through the first three chapters - still it's probably best to check out the tables and run the examples. .. topic:: What to Expect A quick tour, with working examples, using the tkinter.ttk.Style class, so that you should be able to test a widget and check its styling changes on your own ideas and scripts. An even more lightning tour through the themes from tkinter.ttk and ttkthemes. Create a few specials to show what can be achieved then create a standalone version, after that you are only limited by your imagination. Contributors and Navigation =========================== .. toctree:: :maxdepth: 3 :caption: Contents: authors.rst Basics ====== Software requirements, main differences between the original tkinter and ttk (themed tkinter), how a ttk widget is made up, lastly a summary of the ttk commands. .. toctree:: :maxdepth: 3 :caption: Contents: basics/index-basics Simple Style Changes ==================== Use tkinter commands to make simple style changes to button, orientated widgets, widgets with an auxiliary part and finally some more examples with the Style class. .. toctree:: :maxdepth: 3 :caption: Contents: simple/index-simple Style with State ================ The state of widgets can be altered directly by the program or by the user's actions. Show the user something has changed. .. toctree:: :maxdepth: 3 :caption: Contents: state/index-state Images First Steps ================== How to import images onto widgets .. toctree:: :maxdepth: 3 :caption: Contents: workimage/index-work Images more Advanced ==================== Working with images to customise your widgets. .. toctree:: :maxdepth: 3 :caption: Contents: plusimage/index-plus Roll Your Own ============= How to make a theme that either works in parallel with ttktheme (separately imported and using Tk/Tcl) or a standalone theme purely in Python. .. toctree:: :maxdepth: 3 :caption: Contents: roll/index-roll Blue Sky Thinking ================= First attempts at a standalone theme. .. toctree:: :maxdepth: 3 :caption: Contents: bluesky/index-sky Down to Earth ============= Sorting out some of the problems. .. toctree:: :maxdepth: 3 :caption: Contents: earth/index-earth Replicating the Widgets ======================= Use some of the ttkthemes to see how well we can duplicate the images. .. toctree:: :maxdepth: 3 :caption: Contents: replicate/index-replicate Lime Theme ========== Create your own theme using tools to standardise the overall appearance. .. toctree:: :maxdepth: 3 :caption: Contents: lime/index-lime Sources for Documentation ========================= .. toctree:: :maxdepth: 3 source/modules Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search`