本文整理汇总了Python中PythonQt.QtCore.QSettings.beginGroup方法的典型用法代码示例。如果您正苦于以下问题:Python QSettings.beginGroup方法的具体用法?Python QSettings.beginGroup怎么用?Python QSettings.beginGroup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PythonQt.QtCore.QSettings
的用法示例。
在下文中一共展示了QSettings.beginGroup方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: ReloadSettings
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import beginGroup [as 别名]
def ReloadSettings(self):
settings = QSettings()
settings.beginGroup(self.SETTINGS_GROUP)
self.audio_type = int(settings.value("audio_type", 0))
self.username = unicode(settings.value("username", ""))
self.password = unicode(settings.value("password", ""))
示例2: saveSettings
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import beginGroup [as 别名]
def saveSettings(self):
settings = QSettings()
settings.beginGroup("uploaders")
settings.beginGroup("shell")
settings.setValue("command", self.commandFormat)
settings.endGroup()
settings.endGroup()
示例3: saveSettings
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import beginGroup [as 别名]
def saveSettings(self):
settings = QSettings()
settings.beginGroup("uploaders")
settings.beginGroup("shell")
settings.setValue("command", self.settingsDialog.group_shell.input_command.text)
settings.endGroup()
settings.endGroup()
示例4: loadSettings
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import beginGroup [as 别名]
def loadSettings(self):
settings = QSettings()
settings.beginGroup("uploaders")
settings.beginGroup("zapier")
self.zapier_url = settings.value("url", "")
settings.endGroup()
settings.endGroup()
示例5: showEvent
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import beginGroup [as 别名]
def showEvent(self, event):
# Load the settings
settings = QSettings()
settings.beginGroup(DigitallyImportedServiceBase.SETTINGS_GROUP)
self.type.setCurrentIndex(int(settings.value("audio_type", 0)))
self.username.setText(settings.value("username", ""))
self.password.setText(settings.value("password", ""))
示例6: loadSettings
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import beginGroup [as 别名]
def loadSettings(self):
settings = QSettings()
settings.beginGroup("uploaders")
settings.beginGroup("shell")
self.commandFormat = settings.value("command", "")
settings.endGroup()
settings.endGroup()
示例7: saveSettings
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import beginGroup [as 别名]
def saveSettings(self):
settings = QSettings()
settings.beginGroup("uploaders")
settings.beginGroup("file")
settings.setValue("name-format", self.settingsDialog.group_name.input_name.text)
settings.setValue("folder", self.settingsDialog.group_location.input_folder.text)
settings.endGroup()
settings.endGroup()
示例8: loadSettings
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import beginGroup [as 别名]
def loadSettings(self):
settings = QSettings()
settings.beginGroup("uploaders")
settings.beginGroup("file")
self.nameFormat = settings.value("name-format", "Screenshot at %H-%M-%S")
self.folder = settings.value("folder", "")
settings.endGroup()
settings.endGroup()
示例9: saveSettings
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import beginGroup [as 别名]
def saveSettings(self):
settings = QSettings()
settings.beginGroup("uploaders")
settings.beginGroup("shell")
settings.setValue("command", self.settingsDialog.group_shell.input_command.text)
settings.setValue("copyOutput", str(self.settingsDialog.group_shell.output_is_url.checked))
settings.endGroup()
settings.endGroup()
示例10: saveSettings
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import beginGroup [as 别名]
def saveSettings(self):
self.zapier_url = self.settingsDialog.group_url.widget_url.input_url.text
settings = QSettings()
settings.beginGroup("uploaders")
settings.beginGroup("zapier")
settings.setValue("url", self.zapier_url)
settings.endGroup()
settings.endGroup()
示例11: loadSettings
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import beginGroup [as 别名]
def loadSettings(self):
settings = QSettings()
settings.beginGroup("uploaders")
settings.beginGroup("shell")
self.commandFormat = settings.value("command", "")
self.outputIsUrl = settings.value("copyOutput",str(False)) == "True"
settings.endGroup()
settings.endGroup()
示例12: accept
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import beginGroup [as 别名]
def accept(self):
# Save the settings
settings = QSettings()
settings.beginGroup(DigitallyImportedServiceBase.SETTINGS_GROUP)
settings.setValue("audio_type", self.type.currentIndex)
settings.setValue("username", self.username.text)
settings.setValue("password", self.password.text)
QDialog.done(self, QDialog.Accepted)
示例13: loadSettings
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import beginGroup [as 别名]
def loadSettings(self):
settings = QSettings()
settings.beginGroup("uploaders")
settings.beginGroup("uguu.se")
self.nameFormat = settings.value("name-format", "screenshot-%H-%M-%S")
self.copyLink = settings.value("copy-link", "true") in ["true", True]
settings.endGroup()
settings.endGroup()
示例14: saveSettings
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import beginGroup [as 别名]
def saveSettings(self):
settings = QSettings()
settings.beginGroup("uploaders")
settings.beginGroup("uguu.se")
settings.setValue("name-format", self.settingsDialog.group_name.input_name.text)
settings.setValue("copy-link", self.settingsDialog.group_clipboard.checkbox_copy_link.checked)
settings.endGroup()
settings.endGroup()
示例15: logout
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import beginGroup [as 别名]
def logout(self):
settings = QSettings()
settings.beginGroup("uploaders")
settings.beginGroup("dropbox")
settings.remove("access-token")
settings.remove("user-id")
settings.remove("display-name")
settings.endGroup()
settings.endGroup()
self.loadSettings()
self.updateUi()