trame.widgets.tauri module
- class trame.widgets.tauri.Dialog(ref='tauri_dialog', **kwargs)
Bases:
AbstractElement
- class trame.widgets.tauri.Events(listen=[], once=[], **kwargs)
Bases:
AbstractElement
- class trame.widgets.tauri.Window(ref=None, **kwargs)
Bases:
AbstractElement- center()
Center the window.
- close()
Close the window.
- show()
Show the window. Same effect as updating the ‘visible’ property.
- hide()
Hide the window. Same effect as updating the ‘visible’ property.
- maximize()
Maximize the window
- unmaximize()
Unmaximize the window
- minimize()
Minimize the window
- unminimize()
Unminimize the window
- grab_focus()
Bring focus to the window
- set_fullscreen(on=True)
Activate or deactivate full screen mode
- request_user_attention(level=None)
Request user attention. Level can be None/1/2. https://tauri.app/v1/api/js/window#userattentiontype
- set_position(x, y)
Update window position (logical)
- set_size(w, h)
Update window size (logical)
- set_title(title)
Update window title