- Tkinter GUI Application Development Blueprints
- Bhaskar Chaudhary
- 202字
- 2021-07-30 10:10:35
GUI programming – the big picture
As a GUI programmer, you will generally be responsible for deciding the following three aspects of your program:
- Which components should appear on the screen? This involves choosing the components that make the user interface. Typical components include things such as buttons, entry fields, checkboxes, radio buttons, scroll bars, and the like. In Tkinter, the components that you add to your GUI are called widgets. Widgets (short for window gadgets) are the graphical components that make up your application's frontend.
- Where should the components go? This includes deciding the position and the structural layout of various components. In Tkinter, this is referred to as geometry management.
- How do components interact and behave? This involves adding functionality to each component. Each component or widget does some work. For example, a button, when clicked on, does something in response. A scrollbar handles scrolling, and checkboxes and radio buttons enable users to make some choices. In Tkinter, the functionality of various widgets is managed by the
command
binding or theevent
binding using callback functions.
The following figure shows the three components of GUI programming:

Let's delve deeper into each of these three components in the context of Tkinter.
推薦閱讀
- Oracle 12c中文版數據庫管理、應用與開發實踐教程 (清華電腦學堂)
- Learning SQLite for iOS
- 從0到1:HTML+CSS快速上手
- Visual Basic程序設計實驗指導(第4版)
- AppInventor實踐教程:Android智能應用開發前傳
- Access 2010數據庫應用技術(第2版)
- GameMaker Essentials
- Java7程序設計入門經典
- R的極客理想:量化投資篇
- Java Hibernate Cookbook
- JavaScript Mobile Application Development
- Internet of Things with Arduino Cookbook
- Testing Practitioner Handbook
- 像程序員一樣使用MySQL
- JavaScript前端開發程序設計教程(微課版)