Exemplo n.º 1
0
 def saveSettings(self):
    settings['dbHost'] = str(self.dbHostInput.text())
    settings['dbUser'] = str(self.dbUserInput.text())
    settings['dbPassword'] = str(self.dbPasswordInput.text())
    settings['mythFileDir'] = str(self.fileDirInput.text())
    settings['mpv'] = str(self.mpvInput.text())
    settings['bufferTime'] = self.bufferTimeInput.value()
    settings.save()
    if settings['firstRun']:
       self.initConfig.hide()
    self.tabs.setCurrentWidget(self.mainMenuTab)
Exemplo n.º 2
0
 def closeEvent(self, event):
    settings.save()