Esempio n. 1
0
 def __saveOptions(self):
     global kapp
     config = kapp.config()
     config.setGroup("General")
     config.writeEntry("Geometry", self.size())
     config.writeEntry("ListBoxSelection",mainwidget.selectComboBox.currentItem())
     config.sync()
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)
Esempio n. 4
0
 def __saveOptions(self):
     global kapp
     config = kapp.config()
     config.setGroup("General")
     config.writeEntry("Geometry", self.size())
     config.sync()