- 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.
推薦閱讀
- 嵌入式軟件系統(tǒng)測試:基于形式化方法的自動化測試解決方案
- Microsoft Exchange Server PowerShell Cookbook(Third Edition)
- 精通搜索分析
- Animate CC二維動畫設計與制作(微課版)
- Internet of Things with the Arduino Yún
- Julia Cookbook
- Haxe Game Development Essentials
- Working with Odoo
- 從零開始學Linux編程
- Python機器學習之金融風險管理
- 深入實踐DDD:以DSL驅(qū)動復雜軟件開發(fā)
- Mastering SciPy
- 實驗編程:PsychoPy從入門到精通
- Isomorphic Go
- Java編程指南:語法基礎、面向?qū)ο蟆⒑瘮?shù)式編程與項目實戰(zhàn)