-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
35 lines (25 loc) · 789 Bytes
/
Copy pathmain.py
File metadata and controls
35 lines (25 loc) · 789 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
32
33
34
35
"""
main.py — Entry point for Function Sonifier.
A desktop GUI application that lets users hear mathematical functions
as sound. Built with PyQt6, SymPy, Matplotlib, and sounddevice.
"""
import sys
import os
# Ensure the package directory is on the path
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from PyQt6.QtWidgets import QApplication
from PyQt6.QtGui import QFont
from gui import MainWindow
def main() -> None:
app = QApplication(sys.argv)
app.setApplicationName("Function Sonifier")
app.setStyle("Fusion")
# Set default font
font = QFont("Segoe UI", 10)
font.setStyleHint(QFont.StyleHint.SansSerif)
app.setFont(font)
window = MainWindow()
window.show()
sys.exit(app.exec())
if __name__ == "__main__":
main()