def __loadOptions(self): global kapp config = kapp.config() config.setGroup("General") size = config.readSizeEntry("Geometry") if size.isEmpty(): self.resize(700,600) else: self.resize(size)
def __loadOptions(self): global kapp config = kapp.config() config.setGroup("General") size = config.readSizeEntry("Geometry") listBoxSelection = config.readNumEntry("ListBoxSelection",0) mainwidget.selectComboBox.setCurrentItem(listBoxSelection) mainwidget.updateListing(listBoxSelection) if size.isEmpty()==False: self.resize(size)