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

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:

主站蜘蛛池模板: 喀什市| 高阳县| 新干县| 诸城市| 普定县| 南丰县| 盐山县| 冕宁县| 吉林省| 云南省| 长葛市| 治多县| 石城县| 峨边| 余庆县| 东乡| 灵璧县| 福贡县| 抚宁县| 锡林浩特市| 平陆县| 白银市| 汝南县| 得荣县| 临洮县| 简阳市| 洱源县| 青河县| 西和县| 会东县| 和硕县| 临夏市| 贺州市| 大足县| 铁岭县| 乌兰浩特市| 乌拉特中旗| 邢台市| 太保市| 四川省| 枞阳县|