-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented a light/dark theme for GynTree. Expanded testing suite an…
…d enhanced run_tests script. Other various fixes and modifications including new logo, new button looks, etc.
- Loading branch information
Showing
54 changed files
with
3,009 additions
and
995 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
""" | ||
GynTree: Main entry point for the GynTree application. Initializes core components and starts the user interface. | ||
The app module orchestrates the overall flow of the application, connecting various components and services. | ||
""" | ||
|
||
import sys | ||
import logging | ||
from PyQt5.QtWidgets import QApplication | ||
from controllers.AppController import AppController | ||
from utilities.error_handler import ErrorHandler | ||
from utilities.theme_manager import ThemeManager | ||
|
||
logging.basicConfig(level=logging.DEBUG, | ||
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') | ||
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') | ||
logger = logging.getLogger(__name__) | ||
|
||
def main(): | ||
# Set global exception handling | ||
sys.excepthook = ErrorHandler.global_exception_handler | ||
|
||
app = QApplication(sys.argv) | ||
controller = AppController() | ||
|
||
# Connect cleanup method to be called on application quit | ||
theme_manager = ThemeManager.getInstance() | ||
|
||
try: | ||
controller = AppController() | ||
except Exception as e: | ||
logger.critical(f"Failed to initialize AppController: {str(e)}") | ||
sys.exit(1) | ||
|
||
app.aboutToQuit.connect(controller.cleanup) | ||
|
||
# Start the application | ||
controller.run() | ||
|
||
# Start the event loop | ||
theme_manager.apply_theme_to_all_windows(app) | ||
|
||
sys.exit(app.exec_()) | ||
|
||
if __name__ == "__main__": | ||
try: | ||
main() | ||
except Exception as e: | ||
logger.critical(f"Fatal error in main: {str(e)}", exc_info=True) | ||
sys.exit(1) | ||
sys.exit(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.