[Tutor] Classes in multiple files - code included

Peter Otten __peter__ at web.de
Thu Apr 4 08:58:01 CEST 2013


Phil wrote:

> I think I must be very close now so I'll post just the code that I think
> is relevant.
> 
> This the main window class:

> import satListDialog

Here you are importing the module "satListDialog"
 
> class MainWindow(QMainWindow, Ui_MainWindow):
> 
> This is the function to show the dialog;
> 
>     def on_actionList_triggered(self):
> 
>         self.dialog = Ui_satListDialog.SatelliteListDialog()
>         self.dialog.show()

and here you are referring to the module "Ui_satListDialog". I'd guess that 
should be

        self.dialog = satListDialog.SatelliteListDialog()

instead.



More information about the Tutor mailing list