Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/06/2014, 14:54
victorravelolv4
 
Fecha de Ingreso: junio-2014
Ubicación: Maracay
Mensajes: 7
Antigüedad: 9 años, 10 meses
Puntos: 0
Respuesta: error en Python usando qt

se me olvidaba aqui esta el codigo .py del .ui
Código Python:
Ver original
  1. # -*- coding: utf-8 -*-
  2.  
  3. # Form implementation generated from reading ui file 'show_name.ui'
  4. #
  5. # Created: Thu Jun 26 14:01:28 2014
  6. #      by: PyQt4 UI code generator 4.9.1
  7. #
  8. # WARNING! All changes made in this file will be lost!
  9.  
  10. from PyQt4 import QtCore, QtGui
  11.  
  12. try:
  13.     _fromUtf8 = QtCore.QString.fromUtf8
  14. except AttributeError:
  15.     _fromUtf8 = lambda s: s
  16.  
  17. class Ui_MainDialog(object):
  18.     def setupUi(self, MainDialog):
  19.         MainDialog.setObjectName(_fromUtf8("MainDialog"))
  20.         MainDialog.resize(415, 101)
  21.         self.NameEdit = QtGui.QLineEdit(MainDialog)
  22.         self.NameEdit.setGeometry(QtCore.QRect(20, 40, 271, 27))
  23.         self.NameEdit.setText(_fromUtf8(""))
  24.         self.NameEdit.setObjectName(_fromUtf8("NameEdit"))
  25.         self.show_button = QtGui.QPushButton(MainDialog)
  26.         self.show_button.setGeometry(QtCore.QRect(310, 40, 85, 27))
  27.         self.show_button.setObjectName(_fromUtf8("show_button"))
  28.  
  29.         self.retranslateUi(MainDialog)
  30.         QtCore.QMetaObject.connectSlotsByName(MainDialog)
  31.         MainDialog.setTabOrder(self.show_button, self.NameEdit)
  32.  
  33.     def retranslateUi(self, MainDialog):
  34.         MainDialog.setWindowTitle(QtGui.QApplication.translate("MainDialog", "Main Dialog", None, QtGui.QApplication.UnicodeUTF8))
  35.         self.NameEdit.setPlaceholderText(QtGui.QApplication.translate("MainDialog", "what is you name?", None, QtGui.QApplication.UnicodeUTF8))
  36.         self.show_button.setText(QtGui.QApplication.translate("MainDialog", "Show", None, QtGui.QApplication.UnicodeUTF8))


no si afecte en algo pero mi ide es pycham