-
Notifications
You must be signed in to change notification settings - Fork 0
Modules
LinuxEducation edited this page Dec 28, 2023
·
11 revisions
Note
Modules are ready-made, independent components that provide functionality. testTk supports custom modules based on testTk widgets, modules based solely on the Tkinter library or ready-to-use functions.
🚩 module options
Parameter | Type | Default | Description |
---|---|---|---|
title | str | 'Setting Menu' | title of window settings. |
window_x / window_y | int | 500x300 | standard, basic window size. |
setting_data | dict | tip implemented | expects object type dictionary. |
setting_file | str | 'default_setting_menu.json' | the name of the file in which the settings will be remembered. |
setting_save | bool | True | writing will be enabled/disabled. |
command | func | None | expects function, method. |
🔵 module methods
.get_settings() | This method allows you to get settings from the module (menu).
example
import ...
def your_function():
data = {'shadow': [True, 'Draw shadow'],
'border': [None, 'Draw border'],
'animation': [0, 'Enabled widget animation']}
menu = tesSimpleSettingMenu(setting_data=data)
settings = menu.get_settings('shadow')
app = App()
tesButton(app, command=your_function).pack()
app.mainloop()
documentation, tips, available methods...
documentation, tips, available methods...
documentation, tips, available methods...
documentation, tips, available methods...
documentation, tips, available methods...
documentation, tips, available methods...