Created
June 2, 2017 10:51
-
-
Save Indavelopers/c4add231176d264c9e523a17fb247d1b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PyQt4 import QtGui | |
def window(): | |
app = QtGui.QApplication(sys.argv) | |
w = QtGui.QWidget() | |
b = QtGui.QLabel(w) | |
b.setText("Hello World!") | |
w.setGeometry(100,100,200,50) | |
b.move(50,20) | |
w.setWindowTitle(“PyQt”) | |
w.show() | |
sys.exit(app.exec_()) | |
if __name__ == '__main__': | |
window() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment