Tkinter look (theme) in Linux

后端 未结 3 834
自闭症患者
自闭症患者 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条回答
  •  南旧
    南旧 (楼主)
    2021-02-02 01:11

    To use ttk you have to import it.

    from tkinter import *
    from tkinter import ttk
    

    After that you should use tkinter widgets like this-label=ttk.Label() or button = ttk.Button()

提交回复
热议问题