-
Notifications
You must be signed in to change notification settings - Fork 0
Widgets
LinuxEducation edited this page Dec 29, 2023
·
6 revisions
Note
GUI/UI (ang. graphical user interface) is a collection of different widgets. Widgets are the basis of every modern program. On this page you will find detailed information about testTK widgets.
tesWidgetBox is a box, a container for creating custom widgets. It is a good widget for creating application menus.
🚩 widget options
Parameter | Type | Description |
---|---|---|
title | str | a simple text, short description. |
width / height | int | standard, basic widget size. |
width_max / height_max | int | max widget size. |
background | str | widget ground color. |
button_color | str | button color inside the widget. |
separator | bool | adds a simple horizontal line. |
widget_box_setting | func | adds a settings button to the advanced application menu. Expects function, method. |
animation | str | If you change the size of the widget, the border color will change. |
🔵 widget methods
.resize_widget_box() | This method allows you to change the size of the widget. The width_max or height_max parameters set its maximum size.
Tip
This widget can launch functions, methods or additional settings menus. You can use tesSimpleSettingMenu and extend its capabilities. You can also create your own menu. To do this, use the: widget_box_setting parameter.