Hi there,
I have an application of which the file structure is as follows each file holds but one class, and that class is the name of the file:
each of the subwindows are imported as well as the main gui directory.
From the setupwindow, I get user input data and I am trying to some of it to the label widgets in the mainwindow but I get the following error:
Thinking further, should I really be creating a separate class in the main folder that will collect the data from the higher level widgets and posting them to the lower level main window using different methods?
I have an application of which the file structure is as follows each file holds but one class, and that class is the name of the file:
datainput/ __init__.py main.py settings.py gui/ __init__.py datainput.py inputwidget.py setupwidget.py ui/ mainwindow.ui inputwidget.ui setupwidget.uiat the beginning of each of the files in gui directory, there is:
from PuyQt4 import QtGui import datainput.guiand in the mainwindow
each of the subwindows are imported as well as the main gui directory.
From the setupwindow, I get user input data and I am trying to some of it to the label widgets in the mainwindow but I get the following error:
NameError: name 'DataInput' is not definedImplying that the module has not been imported. Do I have to import it again for it to see the class DataInput? would this not then create a circular import issue?
Thinking further, should I really be creating a separate class in the main folder that will collect the data from the higher level widgets and posting them to the lower level main window using different methods?