Tkinter look (theme) in Linux

后端 未结 3 769
自闭症患者
自闭症患者 2021-02-02 01:04

I know that Tkinter is not so modern, not so cool and maybe better to use PyQt or etc.

But it is interesting for me can Tkinter look not so ugly in Ubuntu (Linux). Looks

3条回答
  •  猫巷女王i
    2021-02-02 01:28

    From documentation if you want to use ttk instead of regular Tki widgets:

    from Tkinter import *
    from ttk import *
    

    several ttk widgets (Button, Checkbutton, Entry, Frame, Label, LabelFrame, Menubutton, PanedWindow, Radiobutton, Scale and Scrollbar) will automatically substitute for the Tk widgets.

    You dont seem to use any other widget not covered by ttk. So this should help and enable themed ttk for you. If you want to check what themes are avaliable and how to check a theme, have a look here as well.

提交回复
热议问题