Esempio n. 1
0
 def __init__(self, model):
     QtGui.QMainWindow.__init__(self)
     # model, holds data.
     self.model = model
     # used to validate user inputs.
     self.validate = Validation()
     # main view.
     self.setGeometry(300, 300, 500, 380)
     self.setWindowTitle('Air Quality Model')
     # smaller search bar.
     self.search = Search(self.model.schemas)
     # connect search bar widget to the controler. The controller connects the search bar to the Table of data.
     self.search.procDone.connect(self._widgetSearch)
     # connection to show the table search.
     self.search.procTable.connect(self._getTables)
     # menu bar.
     self.addMenuBar()