Benutzer-Werkzeuge

Webseiten-Werkzeuge


en:tkk

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
en:tkk [2022/03/04 13:47] – [Frame] roehneren: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, Separator and Sizegrip widgets are only available as TTK widgets.
 +
 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://anzeljg.github.io/rin2/book2/2405/docs/tkinter/index.html| Tkinter Reference]]. 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://anzeljg.github.io/rin2/book2/2405/docs/tkinter/index.html| Tkinter Reference]].
  
-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 238: Zeile 240:
 </code> </code>
 ---- ----
 +==== Notebook====
 +{{:notebook.png}} A Notebook widget provides tabs at the top that can be used to open frames at the bottom.
  
 +{{:notebookexample.png}}
 +----
 +==== Treeview====
 +{{:treewidget.png}} A Treeview represents a hierarchical structure in a tree-like manner.
 +
 +By appropriate indentation, the structure is specified via the //Items// attribute. This structure is predefined at the beginning:
 +
 +<code>
 +First
 +  node A
 +  node B
 +Second
 +  node C
 +    node D
 + </code>
 +----
 +==== Progressbar ====
 +{{:progressbar.png}} A Progressbar represents a progress bar.
 +----
 +==== Separator ====
 +{{:separator.png}} A Separator is a horizontal or vertical path that can be used to structure the GUI interface.
 +----
 +==== Sizegrip ====
 +{{:sizegrip.png}} A Sizegrip widget is placed in the bottom right corner to resize the entire application window.
 +----
en/tkk.1646398030.txt.gz · Zuletzt geändert: 2022/03/04 13:47 von roehner