class FiniteElementCreationDlg(QtGui.QWidget):
    '''
    Create a subclass of QWidget for our application.  We could also have derived this 
    application from QMainApplication to give us a menu bar among other things, but a
    QWidget is sufficient for our purposes.
    '''
    
    def __init__(self, parent=None):
        '''
        Initiaise the FiniteElementCreationDlg first calling the QWidget __init__ function.
        '''
        QtGui.QWidget.__init__(self, parent)
        
        # Using composition to include the visual element of the GUI.
        self.ui = Ui_FiniteElementCreationDlg()
        self.ui.setupUi(self)
        self.setWindowIcon(QtGui.QIcon("cmiss_icon.ico"))
 def __init__(self, parent=None):
     '''
     Initiaise the FiniteElementCreationDlg first calling the QWidget __init__ function.
     '''
     QtGui.QWidget.__init__(self, parent)
     
     # Using composition to include the visual element of the GUI.
     self.ui = Ui_FiniteElementCreationDlg()
     self.ui.setupUi(self)
     self.setWindowIcon(QtGui.QIcon("cmiss_icon.ico"))