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