from panes import Symptoms, Differentials
from ddstorm import DDStorm
from panes import Symptoms, Differentials
from ddstorm import DDStorm
'''
Provides the main content widget. Contains the sysmptoms and
the diagnosis panes. Also creates the DDStorm object and performs
'''
Provides the main content widget. Contains the sysmptoms and
the diagnosis panes. Also creates the DDStorm object and performs
- ret=QtGui.QMessageBox.warning(self, "Compilation Error", "Error was encountered while compiling the Knowledgebase.", "Ignore", "View Log")
+ ret=QtWidgets.QMessageBox.warning(self, "Compilation Error", "Error was encountered while compiling the Knowledgebase.", "Ignore", "View Log")
grid.addWidget(self.symp, 0, 0)
grid.addWidget(self.diff, 0, 1)
grid.setColumnStretch(0, 1)
grid.setColumnStretch(1, 1)
grid.addWidget(self.symp, 0, 0)
grid.addWidget(self.diff, 0, 1)
grid.setColumnStretch(0, 1)
grid.setColumnStretch(1, 1)
'''
Provides main application window. Acts as a container for the
content widget. Also contains the menubar and the status bar.
'''
Provides main application window. Acts as a container for the
content widget. Also contains the menubar and the status bar.
menuEdit=menu.addMenu("&Edit")
menuEdit.addAction("&Add").triggered.connect(self.con.symp.addItem)
menuEdit.addAction("&Browse Symptoms").triggered.connect(self.con.symp.browseSymptoms)
menuEdit=menu.addMenu("&Edit")
menuEdit.addAction("&Add").triggered.connect(self.con.symp.addItem)
menuEdit.addAction("&Browse Symptoms").triggered.connect(self.con.symp.browseSymptoms)
rmAction.setShortcut("Delete")
rmAction.triggered.connect(self.con.symp.remove)
menuEdit.addAction(rmAction)
rmAction.setShortcut("Delete")
rmAction.triggered.connect(self.con.symp.remove)
menuEdit.addAction(rmAction)