- Tkinter GUI Application Development Blueprints(Second Edition)
- Bhaskar Chaudhary
- 123字
- 2021-06-24 18:35:06
Doing it in style
So far, we have relied on Tkinter to provide specific platform-based styling for our widgets. However, you can specify your own styling of widgets, such as their color, font size, border width, and relief. A brief introduction to styling features that are available in Tkinter is supplied in the following section.
You may recall that we can specify widget options at the time of its instantiation, as follows:
my_button = tk.Button(parent, **configuration options)
Alternatively, you can specify the widget options by using configure() in the following way:
my_button.configure(**options)
Styling options are also specified as options to the widgets either at the time of creating the widgets, or later by using the configure option.
推薦閱讀
- MySQL 8從入門到精通(視頻教學(xué)版)
- oreilly精品圖書:軟件開發(fā)者路線圖叢書(共8冊)
- Python數(shù)據(jù)分析(第2版)
- 零基礎(chǔ)學(xué)Python網(wǎng)絡(luò)爬蟲案例實戰(zhàn)全流程詳解(高級進(jìn)階篇)
- 編程菜鳥學(xué)Python數(shù)據(jù)分析
- Java高并發(fā)核心編程(卷1):NIO、Netty、Redis、ZooKeeper
- 響應(yīng)式架構(gòu):消息模式Actor實現(xiàn)與Scala、Akka應(yīng)用集成
- D3.js By Example
- 深度學(xué)習(xí)原理與PyTorch實戰(zhàn)(第2版)
- Troubleshooting Citrix XenApp?
- Practical Microservices
- 深入解析Java編譯器:源碼剖析與實例詳解
- Learning Android Application Testing
- UI設(shè)計基礎(chǔ)培訓(xùn)教程(全彩版)
- Pandas入門與實戰(zhàn)應(yīng)用:基于Python的數(shù)據(jù)分析與處理