Astro-Session-Watcher/main.py
2026-05-07 17:15:56 +03:00

33 lines
No EOL
902 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""
Astro Session Watcher - Главный входной файл
Приложение для астрофотографов с отслеживанием файлов и сортировкой по объектам
"""
import sys
import os
from pathlib import Path
# Добавляем корневую директорию в путь
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from PySide6.QtWidgets import QApplication
from ui.main_window import MainWindow
def main():
"""Точка входа в приложение"""
app = QApplication(sys.argv)
# Устанавливаем стиль Fusion для современного вида
app.setStyle("Fusion")
# Тёмная палитра
app.setPalette(app.style().standardPalette())
window = MainWindow()
window.show()
sys.exit(app.exec())
if __name__ == "__main__":
main()