Skip to content

Commit 1f9e8f0

Browse files
author
Bryan Howard
committed
I don't need to know that it's loaded all the time.
1 parent 5244309 commit 1f9e8f0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@
77
from PySide6.QtWidgets import QApplication
88
from node_editor_window import NodeEditorWindow
99

10+
1011
def load_stylesheet(app, filename="dark_theme.qss"):
1112
"""Loads an external QSS file and applies it to the application."""
1213
try:
1314
with open(filename, "r") as f:
1415
style = f.read()
1516
app.setStyleSheet(style)
16-
print(f"Stylesheet '{filename}' loaded successfully.")
1717
except FileNotFoundError:
1818
print(f"Warning: Stylesheet '{filename}' not found. Using default style.")
1919

20-
if __name__ == '__main__':
20+
21+
if __name__ == "__main__":
2122
# Create the Qt Application
2223
app = QApplication(sys.argv)
2324

0 commit comments

Comments
 (0)