Files
db-thing/util/gui/windows.py
2025-06-01 22:29:01 +12:00

14 lines
435 B
Python

# External Library
from PySide6.QtWidgets import QApplication, QTextEdit, QMdiSubWindow
class Windows:
note_counter = 0
@staticmethod
def create_note(app_instance):
Windows.note_counter += 1
sub = QMdiSubWindow()
sub.setWidget(QTextEdit(f"Notes {Windows.note_counter}"))
sub.setWindowTitle(f"Notes {Windows.note_counter}")
app_instance.mdi_area.addSubWindow(sub)
sub.show()