[pyar] Hola mundo
GaBo
acostadariogabriel en gmail.com
Mar Mar 25 10:39:12 ART 2014
from PyQt4 import QtGui
class HelloPyAr(QtGui.QDialog):
def __init__(self, parent=None):
super(HelloPyAr, self).__init__(parent)
self.setWindowTitle('PyAr')
btn_Saludo = QtGui.QPushButton('Saludar')
self.lbl = QtGui.QLabel('')
layout = QtGui.QHBoxLayout()
layout.addWidget(btn_Saludo)
layout.addWidget(self.lbl)
self.setLayout(layout)
btn_Saludo.clicked.connect(self.saludar)
def saludar(self):
self.lbl.setText('Hola Mundo!')
def main():
main()
if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.argv)
p = HelloPyAr()
p.show()
sys.exit(app.exec_())
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20140325/ab2e4143/attachment.html>
More information about the pyar
mailing list