-
Notifications
You must be signed in to change notification settings - Fork 1
Window Advanced Usage
ztrunk edited this page Mar 23, 2025
·
7 revisions
Window Advanced Usage π‘
Advanced functions for your window. More will be added in the future.
Parameter | Description | Default Value | Icon |
---|---|---|---|
url | The URL for the internal HTTP server. | localhost:{Vars.INTERNAL_HTTP_SERVER_PORT} | π |
title | The title of the window. | self.kwargs['title'] | π·οΈ |
icon | Path to the window icon. | self.kwargs.get('icon_path') | πΌοΈ |
size | The dimensions (width, height) of the window. | (self.kwargs['window_size_x'], self.kwargs['window_size_y']) | π |
debug | Enable or disable debug mode. | self.kwargs.get('debug') | π |
log_file | Path to the debug log file. | self.kwargs.get('debug_file_name') | π |
border_less | Removes window borders if set to True. | self.kwargs.get('border_less') | π² |
caption | Sets a titlebar caption. | self.kwargs.get('titlebar_caption') | π·οΈ |
maximize | Disables the maximize button if True. | self.kwargs.get('titlebar_no_button_maximize') | πΌ |
minimize | Disables the minimize button if True. | self.kwargs.get('titlebar_no_button_minimize') | π½ |
resize | Allows resizing if True, disables if False. | self.kwargs.get('resize', True) | π |
-
resize
isTrue
by default, allowing window resizing. - If
border_less
is enabled, window decorations may be removed. - Debug mode (
debug
) helps track issues by logging detailed information. - The
icon
parameter requires a valid image path for customization.
π Make sure to configure the parameters according to your application needs! π