diff --git a/configtool/boardpanel.py b/configtool/boardpanel.py index 523b4b1..02a4646 100644 --- a/configtool/boardpanel.py +++ b/configtool/boardpanel.py @@ -327,6 +327,22 @@ class BoardPanel(wx.Panel): self.heaters.append(s) continue + # Parsing done. All parsed stuff is now in these arrays and dicts. + # Uncomment for debugging. + #print self.processors + #print self.sensors + #print self.heaters + #print self.candHeatPins + #print self.candThermPins + #print self.candProcessors + #print self.candClocks + #print self.candDisplayBuses + #print self.candDisplayTypes + #print self.tempTables + #print self.cfgValues # #defines with a value and enabled booleans. + #print self.cfgNames # Names only, but also of disabled booleans. + #print self.helpText + for k in range(len(self.sensors)): tn = self.sensors[k][0].upper() if tn in self.tempTables.keys(): @@ -340,6 +356,7 @@ class BoardPanel(wx.Panel): else: self.protFileLoaded = False self.parent.enableSaveBoard(True, True) + self.parent.setBoardTabFile(os.path.basename(fn)) self.pgHeaters.setCandidatePins(self.candHeatPins) self.pgSensors.setCandidatePins(self.candThermPins) diff --git a/configtool/printerpanel.py b/configtool/printerpanel.py index 3732fb7..bc8f520 100644 --- a/configtool/printerpanel.py +++ b/configtool/printerpanel.py @@ -183,7 +183,6 @@ class PrinterPanel(wx.Panel): self.configFile = fn - self.processors = [] gatheringHelpText = False helpTextString = "" helpKey = None @@ -257,6 +256,12 @@ class PrinterPanel(wx.Panel): if self.parseDefineValue(ln): continue + # Parsing done. All parsed stuff is now in these arrays and dicts. + # Uncomment for debugging. + #print self.cfgValues # #defines with a value and enabled booleans. + #print self.cfgNames # Names only, but also of disabled booleans. + #print self.helpText + if os.path.basename(fn) in protectedFiles: self.parent.enableSavePrinter(False, True) self.protFileLoaded = True