- Tkinter GUI Application Development Cookbook
- Alejandro Rodas de Paz
- 92字
- 2021-08-27 19:44:03
There's more...
We set a default value of "red" in our program; however, what would happen if we omit this line, and the value of StringVar does not match any of the radio button values? It will match the default value of the tristatevalue option, which is the empty string. This causes the widget to display in a special "tri-state" or indeterminate mode. Although this option can be modified with the config() method, a better practice is to set a sensible default value so the variable is initialized in a valid state.
推薦閱讀
- Cocos2d Cross-Platform Game Development Cookbook(Second Edition)
- iOS面試一戰(zhàn)到底
- Qt 5 and OpenCV 4 Computer Vision Projects
- 精通Nginx(第2版)
- Getting started with Google Guava
- Learn Type:Driven Development
- 自制編譯器
- Building a RESTful Web Service with Spring
- C語言程序設(shè)計(第2版)
- C#程序設(shè)計(慕課版)
- Python王者歸來
- WebRTC技術(shù)詳解:從0到1構(gòu)建多人視頻會議系統(tǒng)
- Python開發(fā)基礎(chǔ)
- Getting Started with Python
- Unity 2017 Game AI Programming(Third Edition)