-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
31 lines (25 loc) · 778 Bytes
/
Copy pathmain.py
File metadata and controls
31 lines (25 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python3
"""
TutorDraw - Professional Drawing and Annotation Tool
Modular, Clean, Developer-Friendly Implementation
"""
import sys
from PyQt5.QtWidgets import QApplication
from PyQt5.QtGui import QIcon
from src.canvas import TutorCanvas
def main():
"""Main application entry point"""
app = QApplication(sys.argv)
app.setApplicationName("TutorDraw")
app.setApplicationVersion("1.0.0")
# Set application icon with fallback
import os
if os.path.exists("tutorDraw-logoX92.png"):
app.setWindowIcon(QIcon("tutorDraw-logoX92.png"))
# Create and show the main canvas
window = TutorCanvas()
window.show()
# Start the application event loop
sys.exit(app.exec_())
if __name__ == "__main__":
main()