Skip to content

Modules

LinuxEducation edited this page Dec 28, 2023 · 11 revisions

Front-End modules

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.

tesSimpleSettingMenu

🚩 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()

tesAskQuestion

documentation, tips, available methods...

tesShowInfo

documentation, tips, available methods...

AppInformation

documentation, tips, available methods...

Back-End modules

color_palette

documentation, tips, available methods...

setting_data

documentation, tips, available methods...

icon_database

documentation, tips, available methods...

Clone this wiki locally