Skip to content

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.

Parameters

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) πŸ”„

Notes

  • resize is True 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! πŸš€

Clone this wiki locally