官术网_书友最值得收藏!

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, and scrollbars. 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 something. 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 command binding or event binding using callbacks.

The following diagram shows the three components of GUI programming:

主站蜘蛛池模板: 宽甸| 西乌| 保定市| 云霄县| 镇江市| 赫章县| 呼伦贝尔市| 临汾市| 筠连县| 河间市| 万年县| 乌什县| 太湖县| 安吉县| 安徽省| 利川市| 福安市| 丽水市| 海伦市| 弋阳县| 梧州市| 江油市| 彝良县| 阳新县| 怀远县| 虹口区| 盘山县| 广西| 手游| 高州市| 奉化市| 清苑县| 芒康县| 隆回县| 德州市| 宁德市| 桃园市| 上高县| 抚松县| 阿图什市| 诸城市|