2024-11-17 18:54:51 +01:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
|
|
|
import sys
|
|
|
|
from utils import Utils
|
2024-11-21 17:34:58 +01:00
|
|
|
from file import FileActions, File
|
2024-11-21 16:56:08 +01:00
|
|
|
from ui import GUI
|
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-21 16:56:08 +01:00
|
|
|
self.gui = GUI(self)
|
2024-11-17 18:54:51 +01:00
|
|
|
|
2024-11-21 16:56:08 +01:00
|
|
|
self.gui.connect_gui(self)
|
2024-11-17 18:54:51 +01:00
|
|
|
|
2024-11-21 17:34:58 +01:00
|
|
|
self.open_files: dict[str, File] = {}
|
2024-11-21 16:40:37 +01:00
|
|
|
|
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-21 16:56:08 +01:00
|
|
|
self.gui.QTMainWindow.show()
|
|
|
|
sys.exit(self.gui.qt_app.exec())
|
2024-11-17 18:54:51 +01:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
editor = BreadEditor()
|
|
|
|
editor.run()
|