Format code
This commit is contained in:
parent
aa44fcc7f6
commit
5963d88966
1 changed files with 3 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue