TkinterEP / ttkthemes

A group of themes for the ttk extenstions for Tkinter
GNU General Public License v3.0
369 stars 48 forks source link

Font changes upon theme activation #14

Closed maicol07 closed 6 years ago

maicol07 commented 6 years ago

Hi, when I set up a Style in a window the normal font changes. In my case, from the standard Windows one it switches to the Ubuntu one... how to fix this? Here you can see text in Label and Button (Ubuntu font) and the one in the window title and the text in the combobox (MS Font).

immagine Thanks

RedFantom commented 6 years ago

Upon enabling a theme, the style defined for each particular widget can override all options, including the font. If you would like to specify a particular font for each widget, most ttk widgets support the font keyword argument. This accepts a tkinter.font.Font instance or a font tuple (like ("Consolas", 12)).

If you would like to change the default behaviour instead of specifying the font for each widget, you can override the font option in the style for each widget. For some basic information about this, I suggest reading this page.

maicol07 commented 6 years ago

Thanks! It works with s.configure(".", font="Helvetica")