en:tkk
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
en:tkk [2022/03/04 13:55] – [OptionMenu] roehner | en:tkk [2022/08/23 19:02] (aktuell) – [Treeview] roehner | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
===== TKK ===== | ===== TKK ===== | ||
+ | TTK widgets look more like operating system widgets and better than Tkinter widgets. On the other hand, the Tkinter widgets are easier to configure. The Combobox, Notebook, Treeview, Progressbar, | ||
+ | |||
A GUI form is built with the help of widgets. These are the graphical components available in the Tkinter or TTK toolbar. In the following, basic information about the use of widgets is given, which is sufficient in many cases. More detailed information can be found in the [[https:// | A GUI form is built with the help of widgets. These are the graphical components available in the Tkinter or TTK toolbar. In the following, basic information about the use of widgets is given, which is sufficient in many cases. More detailed information can be found in the [[https:// | ||
- | A GUI program can be created with the {{:tkinter.png}} icon for new Tk/TTK application on the Program tab. Widgets can be placed by dragging and dropping or by clicking on a widget and then clicking in the GUI form. Only absolute layout is supported. This is perfectly sufficient for most purposes. Designing a GUI interface with layout managers is much more difficult. | + | A GUI program can be created with the {{:tkapp.png}} icon for new Tk/TTK application on the Program tab. Widgets can be placed by dragging and dropping or by clicking on a widget and then clicking in the GUI form. Only absolute layout is supported. This is perfectly sufficient for most purposes. Designing a GUI interface with layout managers is much more difficult. |
Attributes and events of a widget are configured in the Object Inspector. Initially, only the most important attributes and events are displayed. This filtering simplifies the work with the Object Inspector. You can display more or all attributes and methods in two further stages. | Attributes and events of a widget are configured in the Object Inspector. Initially, only the most important attributes and events are displayed. This filtering simplifies the work with the Object Inspector. You can display more or all attributes and methods in two further stages. | ||
Zeile 242: | Zeile 244: | ||
{{: | {{: | ||
+ | ---- | ||
+ | ==== Treeview==== | ||
+ | {{: | ||
+ | |||
+ | By appropriate indentation, | ||
+ | |||
+ | < | ||
+ | First | ||
+ | node A | ||
+ | node B | ||
+ | Second | ||
+ | node C | ||
+ | node D | ||
+ | </ | ||
+ | ---- | ||
+ | ==== Progressbar ==== | ||
+ | {{: | ||
+ | ---- | ||
+ | ==== Separator ==== | ||
+ | {{: | ||
+ | ---- | ||
+ | ==== Sizegrip ==== | ||
+ | {{: | ||
---- | ---- |
en/tkk.1646398535.txt.gz · Zuletzt geändert: 2022/03/04 13:55 von roehner