spinBox.setSuffix("L")
spinBox.setValue(int(configurations[property]["value"].replace("L", "")))
- def _savePage(self, previousRow, previousColumn):
+ def _saveData(self, previousRow, previousColumn):
module = self._module(previousRow)
moduleConfigurations = self._configurations(module)
for index in range(self.pageContent.propertyTable.rowCount()):
def _pageChanged(self, row, column, previousRow, previousColumn):
if previousRow != -1 and previousColumn != -1:
- self._savePage(previousRow, previousColumn)
+ self._saveData(previousRow, previousColumn)
self._fillPropertyTable()
def _currentModule(self):
self.connect(self, SIGNAL("currentIdChanged(int)"), self._pageChanged)
def _pageChanged(self, pageId):
+ prevPage = self.page(pageId - 1)
+ if prevPage is not None:
+ prevPage.saveData()
page = self.page(pageId)
if page is not None:
page.reloadData()
\ No newline at end of file