当前位置: 首页>>代码示例>>Python>>正文


Python QSettings.endGroup方法代码示例

本文整理汇总了Python中PythonQt.QtCore.QSettings.endGroup方法的典型用法代码示例。如果您正苦于以下问题:Python QSettings.endGroup方法的具体用法?Python QSettings.endGroup怎么用?Python QSettings.endGroup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PythonQt.QtCore.QSettings的用法示例。


在下文中一共展示了QSettings.endGroup方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: saveSettings

# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import endGroup [as 别名]
	def saveSettings(self):
		settings = QSettings()
		settings.beginGroup("uploaders")
		settings.beginGroup("shell")
		settings.setValue("command", self.commandFormat)
		settings.endGroup()
		settings.endGroup()
开发者ID:Nothing4You,项目名称:screencloud-plugins,代码行数:9,代码来源:main.py

示例2: loadSettings

# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import endGroup [as 别名]
 def loadSettings(self):
     settings = QSettings()
     settings.beginGroup("uploaders")
     settings.beginGroup("zapier")
     self.zapier_url = settings.value("url", "")
     settings.endGroup()
     settings.endGroup()
开发者ID:bcooksey,项目名称:zapier-screencloud,代码行数:9,代码来源:main.py

示例3: saveSettings

# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import endGroup [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()
开发者ID:SpiderX,项目名称:screencloud-plugins,代码行数:9,代码来源:main.py

示例4: loadSettings

# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import endGroup [as 别名]
	def loadSettings(self):
		settings = QSettings()
		settings.beginGroup("uploaders")
		settings.beginGroup("shell")
		self.commandFormat = settings.value("command", "")
		settings.endGroup()
		settings.endGroup()
开发者ID:Nothing4You,项目名称:screencloud-plugins,代码行数:9,代码来源:main.py

示例5: saveSettings

# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import endGroup [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()
开发者ID:Ichbinjoe,项目名称:screencloud-plugins,代码行数:10,代码来源:main.py

示例6: loadSettings

# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import endGroup [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()
开发者ID:Ichbinjoe,项目名称:screencloud-plugins,代码行数:10,代码来源:main.py

示例7: saveSettings

# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import endGroup [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()
开发者ID:olav-st,项目名称:screencloud-plugins,代码行数:10,代码来源:main.py

示例8: saveSettings

# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import endGroup [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()
开发者ID:olav-st,项目名称:zapier-screencloud,代码行数:10,代码来源:main.py

示例9: loadSettings

# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import endGroup [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()
开发者ID:olav-st,项目名称:screencloud-plugins,代码行数:10,代码来源:main.py

示例10: loadSettings

# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import endGroup [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()
开发者ID:RobKellett,项目名称:ScreenCloud-Uguu,代码行数:12,代码来源:main.py

示例11: saveSettings

# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import endGroup [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()
开发者ID:RobKellett,项目名称:ScreenCloud-Uguu,代码行数:12,代码来源:main.py

示例12: saveSettings

# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import endGroup [as 别名]
	def saveSettings(self):
		settings = QSettings()
		settings.beginGroup("uploaders")
		settings.beginGroup("dropbox")
		settings.setValue("access-token", self.access_token)
		settings.setValue("user-id", self.user_id)
		settings.setValue("display-name", self.display_name)
		settings.setValue("copy-link", self.settingsDialog.group_clipboard.radio_publiclink.checked)
		settings.setValue("name-format", self.settingsDialog.group_name.input_nameFormat.text)
		settings.endGroup()
		settings.endGroup()
开发者ID:teryanik,项目名称:screencloud-plugins,代码行数:13,代码来源:main.py

示例13: loadSettings

# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import endGroup [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()
开发者ID:teryanik,项目名称:screencloud-plugins,代码行数:13,代码来源:main.py

示例14: logout

# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import endGroup [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()
开发者ID:teryanik,项目名称:screencloud-plugins,代码行数:13,代码来源:main.py

示例15: logOut

# 需要导入模块: from PythonQt.QtCore import QSettings [as 别名]
# 或者: from PythonQt.QtCore.QSettings import endGroup [as 别名]
	def logOut(self):
		settings = QSettings()
		settings.beginGroup("uploaders")
		settings.beginGroup("imgur")
		settings.remove("access-token")
		settings.remove("refresh-token")
		settings.remove("username")
		settings.setValue("anonymous", "true")
		settings.endGroup()
		settings.endGroup()
		self.loadSettings()
		self.updateUi()
开发者ID:Nothing4You,项目名称:screencloud-plugins,代码行数:14,代码来源:main.py


注:本文中的PythonQt.QtCore.QSettings.endGroup方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。