[PyKDE] [SOLVED] A bug confirmed

Dave S eric3 at pusspaws.net
Fri Sep 29 17:25:05 BST 2006


Well its taken best part of a day but I solved it (smug grin) :):):)

Because I am creating a 'MainWindow' I have to call it with

#!/bin/env/python

import mainscreen, sys
from PyQt4 import *

def main(args):

    app = QtGui.QApplication(sys.argv)
    window = QtGui.QMainWindow() # *** The change :) ***

    ui = mainscreen.Ui_MainWindow()
    ui.setupUi(window)
    
    window.show()
    sys.exit(app.exec_())
    
if __name__=="__main__":
    main(sys.argv)

phew ... can continue now :)

Dave




More information about the PyQt mailing list