fosKeyMan
Loading...
Searching...
No Matches
src.frontend.mainwindow Namespace Reference

Defines the main Graphical User Interface. More...

Classes

class  MainWindow
 Main User Interface for the application. More...
 

Functions

 file_path (relative_path)
 Join the base directory with the given relative path to generate an absolute path.
 
 main ()
 Initialize and run the application.
 
 resource_path (relative_path)
 Similar to file_path, it generates the absolute path to a resource.
 

Variables

 datefmt
 
 filename
 
 format
 
 level
 

Detailed Description

Defines the main Graphical User Interface.

Author
Xiali Song, Bertram Richter
Date
2025

Function Documentation

◆ file_path()

src.frontend.mainwindow.file_path ( relative_path)

Join the base directory with the given relative path to generate an absolute path.

This function determines the base directory based on whether the application is running in a frozen state (e.g., when packaged with PyInstaller) or in a regular environment.

Parameters
relative_path(str): The relative path to the target file or directory.
Returns
(str): The absolute path to the target file or directory.

Definition at line 1020 of file mainwindow.py.

◆ main()

src.frontend.mainwindow.main ( )

Initialize and run the application.

Definition at line 1049 of file mainwindow.py.

◆ resource_path()

src.frontend.mainwindow.resource_path ( relative_path)

Similar to file_path, it generates the absolute path to a resource.

If the application is frozen (e.g., packaged with PyInstaller), it uses the _MEIPASS directory.

Parameters
relative_path(str): The relative path to the resource.
Returns
(str): The absolute path to the resource.

Definition at line 1035 of file mainwindow.py.

Here is the caller graph for this function:

Variable Documentation

◆ datefmt

src.frontend.mainwindow.datefmt

Definition at line 42 of file mainwindow.py.

◆ filename

src.frontend.mainwindow.filename

Definition at line 39 of file mainwindow.py.

◆ format

src.frontend.mainwindow.format

Definition at line 41 of file mainwindow.py.

◆ level

src.frontend.mainwindow.level

Definition at line 40 of file mainwindow.py.