Format code

This commit is contained in:
Toast 2024-10-21 10:49:31 +02:00
parent aa44fcc7f6
commit 5963d88966

View file

@ -34,8 +34,8 @@ class leekMainWindow(QMainWindow):
layout.addWidget(self.label)
layout.addWidget(button)
self.setMaximumSize(QSize(800,600))
self.setMinimumSize(QSize(400,300))
self.setMaximumSize(QSize(800, 600))
self.setMinimumSize(QSize(400, 300))
container = QWidget()
container.setLayout(layout)
@ -47,14 +47,13 @@ class leekMainWindow(QMainWindow):
print("Button was clicked")
def button_toggled(self, checked):
print("Checked?", checked )
print("Checked?", checked)
def main():
# If you know you won't use command line arguments QApplication([]) works too.
app = QApplication(sys.argv)
# Create a Qt widget, which will be our window.
window = leekMainWindow()
window.show() # IMPORTANT!!!!! Windows are hidden by default.