import sys
from PyQt4 import QtGui, QtCore
app = QtGui.QApplication(sys.argv)
widget = QtGui.QWidget()
widget.setGeometry(200, 100, 400, 300)
widget.setWindowTitle('PyQt Application')
pb = QtGui.QProgressBar(widget)
pb.setGeometry(10, 10, 300, 20)
pb.setValue(50)
widget.show()
sys.exit(app.exec_())
from PyQt4 import QtGui, QtCore
app = QtGui.QApplication(sys.argv)
widget = QtGui.QWidget()
widget.setGeometry(200, 100, 400, 300)
widget.setWindowTitle('PyQt Application')
pb = QtGui.QProgressBar(widget)
pb.setGeometry(10, 10, 300, 20)
pb.setValue(50)
widget.show()
sys.exit(app.exec_())
No comments:
Post a Comment