2024-11-17 18:54:51 +01:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
|
|
|
import sys
|
2024-11-18 18:28:26 +01:00
|
|
|
from PyQt6.QtWidgets import QApplication, QMainWindow
|
2024-11-17 18:54:51 +01:00
|
|
|
from utils import Utils
|
2024-11-18 18:28:26 +01:00
|
|
|
from file import FileActions
|
2024-11-17 18:54:51 +01:00
|
|
|
from connect_gui import connect_gui
|
2024-11-18 18:28:26 +01:00
|
|
|
from gui.main_window import Ui_MainWindow
|
2024-11-17 18:54:51 +01:00
|
|
|
|
|
|
|
|
|
|
|
class BreadEditor:
|
|
|
|
def __init__(self):
|
|
|
|
self.utils = Utils(self)
|
2024-11-18 18:28:26 +01:00
|
|
|
self.file_actions = FileActions(self)
|
2024-11-17 18:54:51 +01:00
|
|
|
|
2024-11-19 18:13:41 +01:00
|
|
|
self.open_files = {}
|
2024-11-17 18:54:51 +01:00
|
|
|
|
2024-11-18 18:28:26 +01:00
|
|
|
self.qt_app = QApplication(sys.argv)
|
|
|
|
|
|
|
|
self.QTMainWindow = QMainWindow()
|
2024-11-17 18:54:51 +01:00
|
|
|
|
|
|
|
self.main_window = Ui_MainWindow()
|
|
|
|
self.main_window.setupUi(self.QTMainWindow)
|
|
|
|
|
|
|
|
connect_gui(self)
|
|
|
|
|
2024-11-21 16:40:37 +01:00
|
|
|
self.main_window.settingsDock.hide()
|
|
|
|
|
2024-11-17 18:54:51 +01:00
|
|
|
def run(self):
|
2024-11-20 13:05:24 +01:00
|
|
|
self.utils.popup_init()
|
|
|
|
|
2024-11-17 18:54:51 +01:00
|
|
|
self.QTMainWindow.show()
|
|
|
|
sys.exit(self.qt_app.exec())
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
editor = BreadEditor()
|
|
|
|
editor.run()
|