I've created my QApplication class like this:
class MyApp(QtGui.QApplication):
    def __init__(self, *args):
        super(MyApp, self).__init__(*args)
        # bla bla bla
        mywin = MyWin()
        mywin.show()
        self.exec_()
    def say_hello(self):
        print "Hello"

But, within MyWin if I call QtGui.qApp.say_hello, it says it's not defined... 
It's even worse, if I ask for QtCore.qApp's type it says 
PyQt4.QtGui.QApplication

There's no cast in python, is it? How could I get extra methods I defined in 
my custom QApp class?

Thanks
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to