def updateSettings(self): locale = QLocale() self.settings.setValue('downloadURL', str(self.downloadUrlLE.text())) self.settings.setValue('uploadURL', str(self.uploadUrlLE.text())) self.settings.setValue('listFolderURL', str(self.listFolderUrlLE.text())) self.settings.setValue('HTTPTimeout', locale.toUInt(self.httpTimeoutLE.text())[0]) self.settings.setValue( 'HTTPShortTimeout', str(locale.toDouble(self.httpShortTimeoutLE.text())[0])) self.settings.setValue('PNGResolution', locale.toUInt(self.pngResolutionLE.text())[0]) self.settings.setValue('TabletHostname', str(self.sshHostLE.text())) self.settings.setValue('SSHUsername', str(self.sshUsernameLE.text())) self.settings.setValue('TabletDocumentsDir', str(self.tabletDocsDirLE.text()))