示例#1
0
文件: prog.py 项目: jalapic/tpatterns
class MyForm(QtGui.QMainWindow):
	def __init__(self, parent=None):
		QtGui.QWidget.__init__(self, parent)
		self.ui = Ui_Form()
		self.ui.setupUi(self)
		self.connect(self.ui.pushButton, QtCore.SIGNAL("clicked()"), self.lol)
		#self.ui.pushButton.pushEvent.connect(self.lol)
	#@QtCore.pyqtSlot()
	def lol(self):
		self.ui.lineEdit.setText("eeeeeeee")
示例#2
0
文件: prog.py 项目: jalapic/tpatterns
	def __init__(self, parent=None):
		QtGui.QWidget.__init__(self, parent)
		self.ui = Ui_Form()
		self.ui.setupUi(self)
		self.connect(self.ui.pushButton, QtCore.SIGNAL("clicked()"), self.lol)
示例#3
0
 def __init__(self, parent=None, *args, **kwargs):
     QWidget.__init__(self, parent)
     #self.ui = Ui_Dialog()
     self.ui = Ui_Form()
     self.ui.setupUi(self)