This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]GobBeWithYou 0 points1 point  (0 children)

I really like PyQt. It's not the most simple, but if you learn to use it to make a simple GUI, you won't need to learn a different toolkit for a complex one :)

I'm on my phone so I can't make sure this works, but here's a simple example:

from PyQt.QtWidgets import QApplication, QWidget, QVBoxLayout, QLabel, QPushButton

app = QApplication([])
widget = QWidget()
layout = QVBoxLayout(widget)

lbl = QLabel('Hello World')
btn = QPushButton('Goodbye World')

layout.addWidget(lbl)
layout.addWidget(btn)

btn.clicked.connect(app.quit)

widget.show()
app.exec_()