1. Label
label = QtGui.QLabel('Lucia Corp', widget)
label.move(10, 10)
2. Buttonbutton = QtGui.QPushButton('Close', widget)
button.setGeometry(10, 10, 80, 30)
3. Textarea textEdit = QtGui.QTextEdit()
widget.setCentralWidget(textEdit)
4. Input Dialog text, ok = QtGui.QInputDialog.getText(widget, 'Login', 'Enter your name:')
5. Color Dialog color = QtGui.QColorDialog.getColor()
6. Font Dialog font, okey = QtGui.QFontDialog.getFont()
7. File Dialogfilename = QtGui.QFileDialog.getOpenFileName(widget, 'Open File', 'E:\')
8. Calendar
calendar = QtGui.QCalendarWidget(widget)
print calendar.selectedDate()9. Pixmap
pixmap = QtGui.QPixmap('lucia.png')
label.setPixmap(pixmap)
No comments:
Post a Comment