Benutzer-Werkzeuge

Webseiten-Werkzeuge


en:tkinter

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:tkinter [2022/03/04 13:22] – [Menu] roehneren:tkinter [2022/08/21 18:06] (aktuell) – [Tkinter] roehner
Zeile 2: Zeile 2:
 A GUI form is built with the help of widgets. These are the graphical components available in the Tkinter toolbar. The basics for using widgets are given below, which is sufficient in many cases. More detailed information can be found e.g. 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 toolbar. The basics for using widgets are given below, which is sufficient in many cases. More detailed information can be found e.g. in the [[https://anzeljg.github.io/rin2/book2/2405/docs/tkinter/index.html| Tkinter Reference]].
  
-A GUI program is created using the {{:tkinter.png}} icon for new Tk/TTK application on the //Program// tab. Widgets can be placed by drag and drop or by clicking on a widget and then clicking in the GUI form. Only absolute layout is supported. This is sufficient for school purposes. Designing a GUI surface with layout managers is much more difficult.+A GUI program is created using the {{:tkapp.png}} icon for new Tk/TTK application on the //Program// tab. Widgets can be placed by drag and drop or by clicking on a widget and then clicking in the GUI form. Only absolute layout is supported. This is sufficient for school purposes. Designing a GUI surface 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 working 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 working with the object inspector. You can display more or all attributes and methods in two further stages.
Zeile 219: Zeile 219:
         pass         pass
 </code> </code>
-\\ +----
----+
 ==== Menubutton ==== ==== Menubutton ====
 {{:menubutton.png}} A Menubutton is a button that displays a PopupMenu when clicked. {{:menubutton.png}} A Menubutton is a button that displays a PopupMenu when clicked.
 The PopupMenu must also be created and then entered in the //Menu// attribute of the Menubutton. The PopupMenu must also be created and then entered in the //Menu// attribute of the Menubutton.
-\\+---- 
 +==== OptionMenu ==== 
 +{{:optionmenu.png}} With an OptionMenu you can select an item from a given string list in the manner of a menu. The string list is specified in the //MenuItems// attribute. 
 + 
 +The selected option is accessed via the CV control variable. 
 + 
 +<code python> 
 +    print(self.optionMenu1CV.get()) 
 +</code>
 ---- ----
  
en/tkinter.1646396526.txt.gz · Zuletzt geändert: 2022/03/04 13:22 von roehner