View Single Post
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#26
ok well tried it....
my class is
class Ui_MainWindow(object):

The error is:
Attribute error: 'UI_MainWindow' object has no attribute 'connect'

Button call in class, sub function, def setupUi(self, MainWindow):
self.connect(self.pushButton, QtCore.SIGNAL("clicked()"), self.updateTab1)

Function in Class:
def updateTab1(self, MainWindow):
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -