Document handling
New/Open/Save/Save as and Undo/Redo
This commit is contained in:
@@ -1,18 +1,26 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
|
||||
from PySide6.QtWidgets import QApplication
|
||||
|
||||
from bedit_gui.resources import resources_rc
|
||||
from bedit_gui.controllers.document_controller import DocumentController
|
||||
from bedit_gui.controllers.undo_controller import UndoController
|
||||
from bedit_gui.documents import Document
|
||||
from bedit_gui.resources.generated import resources_rc # noqa: F401
|
||||
from bedit_gui.views.main_window import MainWindow
|
||||
|
||||
|
||||
def main() -> int:
|
||||
app = QApplication(sys.argv)
|
||||
|
||||
app.setOrganizationName("BEdit")
|
||||
app.setApplicationName("BEdit")
|
||||
|
||||
document = Document(app)
|
||||
window = MainWindow()
|
||||
DocumentController(document, window)
|
||||
UndoController(document, window)
|
||||
window.show()
|
||||
|
||||
return app.exec()
|
||||
|
||||
Reference in New Issue
Block a user