Initial Commit+

This commit is contained in:
OptimiDev
2025-10-20 20:13:09 +02:00
parent 9a0b956e5a
commit a53ccf6b2a
14 changed files with 706 additions and 0 deletions

28
main.py Normal file
View File

@@ -0,0 +1,28 @@
# main.py
import sys
import json
import os
from PySide6.QtWidgets import QApplication
from pirc_setup_wizard import PIRCSetupWizard
from pirc_client import PIRCClient
CONFIG_FILE = "pirc_config.json"
def main():
app = QApplication(sys.argv)
# Check if config exists
if not os.path.exists(CONFIG_FILE):
wizard = PIRCSetupWizard()
if wizard.exec() != 0:
pass # Wizard handled saving config
else:
print("Setup cancelled.")
sys.exit(0)
client = PIRCClient()
client.show()
sys.exit(app.exec())
if __name__ == "__main__":
main()