本文整理汇总了Python中PythonQt.QtCore.QSettings.value方法的典型用法代码示例。如果您正苦于以下问题:Python QSettings.value方法的具体用法?Python QSettings.value怎么用?Python QSettings.value使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PythonQt.QtCore.QSettings
的用法示例。
在下文中一共展示了QSettings.value方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: ReloadSettings
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import value [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: showEvent
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import value [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", ""))
示例3: loadSettings
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import value [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()
示例4: loadSettings
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import value [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()
示例5: loadSettings
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import value [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()
示例6: loadSettings
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import value [as 别名]
def loadSettings(self):
settings = QSettings()
settings.beginGroup("uploaders")
settings.beginGroup("dropbox")
self.access_token = settings.value("access-token", "")
self.user_id = settings.value("user-id", "")
self.display_name = settings.value("display-name", "")
self.copy_link = settings.value("copy-link", "true") in ['true', True]
self.nameFormat = settings.value("name-format", "Screenshot at %H-%M-%S")
settings.endGroup()
settings.endGroup()
示例7: loadSettings
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import value [as 别名]
def loadSettings(self):
settings = QSettings()
settings.beginGroup("uploaders")
settings.beginGroup("shell")
self.commandFormat = settings.value("command", "")
settings.endGroup()
settings.endGroup()
示例8: loadSettings
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import value [as 别名]
def loadSettings(self):
settings = QSettings()
settings.beginGroup("uploaders")
settings.beginGroup("zapier")
self.zapier_url = settings.value("url", "")
settings.endGroup()
settings.endGroup()
示例9: loadSettings
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import value [as 别名]
def loadSettings(self):
settings = QSettings()
settings.beginGroup("uploaders")
settings.beginGroup("owncloud")
self.url = settings.value("url", "")
self.username = settings.value("username", "")
self.password = settings.value("password", "")
self.remotePath = settings.value("remote-path", "")
self.connectStatus = settings.value("connect-status", "")
self.nameFormat = settings.value("name-format", "Screenshot at %H:%M:%S")
self.copyLink = settings.value("copy-link", "true") in ['true', True]
self.copyDirectLink = settings.value("copy-direct-link", "false") in ['true', True]
settings.endGroup()
settings.endGroup()
示例10: loadSettings
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import value [as 别名]
def loadSettings(self):
settings = QSettings()
settings.beginGroup("uploaders")
settings.beginGroup("ftp")
self.host = settings.value("host", "")
self.port = int(settings.value("port", 21))
self.username = settings.value("username", "")
self.password = settings.value("password", "")
self.url = settings.value("url", "")
self.folder = settings.value("folder", "")
self.nameFormat = settings.value("name-format", "Screenshot at %H-%M-%S")
settings.endGroup()
settings.endGroup()
示例11: loadSettings
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import value [as 别名]
def loadSettings(self):
settings = QSettings()
settings.beginGroup("uploaders")
settings.beginGroup("yascp")
self.type = settings.value("type", "SFTP")
self.username = settings.value("username", "")
self.password = settings.value("password", "")
self.host = settings.value("host", "")
if self.type == "FTP":
port = 21
elif self.type == "SFTP":
port = 22
self.port = int(settings.value("port", port))
self.url = settings.value("url", "")
self.path = settings.value("path", "")
settings.endGroup()
settings.endGroup()
示例12: getScreenshotFormat
# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import value [as 别名]
def getScreenshotFormat():
settings = QSettings()
settings.beginGroup("main")
format = settings.value("format", "png")
settings.endGroup()
return format