aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/tools/pyside6-project/example_project/mainwindow.py
blob: fc259c6be0a441e74c2ba3ed31bdf0d582579e57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright (C) 2025 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
from PySide6.QtWidgets import QMainWindow, QWidget, QVBoxLayout
from folder.label_in_folder import LabelInFolder
from subproject.subproject_button import SubprojectButton


class MainWindow(QMainWindow):
    def __init__(self, parent=None):
        super().__init__(parent)
        self.setWindowTitle("Main Window")

        self.central_layout = QVBoxLayout()
        self.central_widget = QWidget()
        self.setCentralWidget(self.central_widget)
        self.central_widget.setLayout(self.central_layout)

        self.label_in_folder = LabelInFolder()
        self.central_layout.addWidget(self.label_in_folder)

        self.subproject_button = SubprojectButton()
        self.central_layout.addWidget(self.subproject_button)