34 lines
573 B
Python
34 lines
573 B
Python
"""
|
|
main.py — Linedance afspiller.
|
|
|
|
Start:
|
|
python main.py
|
|
"""
|
|
|
|
import sys
|
|
import os
|
|
|
|
# Sørg for at rodmappen er i Python-stien
|
|
sys.path.insert(0, os.path.dirname(__file__))
|
|
|
|
from PyQt6.QtWidgets import QApplication
|
|
from ui.main_window import MainWindow
|
|
from ui.themes import apply_theme
|
|
|
|
|
|
def main():
|
|
app = QApplication(sys.argv)
|
|
app.setApplicationName("LineDance Player")
|
|
app.setOrganizationName("LineDance")
|
|
|
|
apply_theme(app, dark=True)
|
|
|
|
window = MainWindow()
|
|
window.show()
|
|
|
|
sys.exit(app.exec())
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|