當前位置: 首頁>>代碼示例>>Python>>正文


Python QSettings.setValue方法代碼示例

本文整理匯總了Python中PythonQt.QtCore.QSettings.setValue方法的典型用法代碼示例。如果您正苦於以下問題:Python QSettings.setValue方法的具體用法?Python QSettings.setValue怎麽用?Python QSettings.setValue使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PythonQt.QtCore.QSettings的用法示例。


在下文中一共展示了QSettings.setValue方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: saveSettings

# 需要導入模塊: from PythonQt.QtCore import QSettings [as 別名]
# 或者: from PythonQt.QtCore.QSettings import setValue [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: saveSettings

# 需要導入模塊: from PythonQt.QtCore import QSettings [as 別名]
# 或者: from PythonQt.QtCore.QSettings import setValue [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

示例3: saveSettings

# 需要導入模塊: from PythonQt.QtCore import QSettings [as 別名]
# 或者: from PythonQt.QtCore.QSettings import setValue [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

示例4: saveSettings

# 需要導入模塊: from PythonQt.QtCore import QSettings [as 別名]
# 或者: from PythonQt.QtCore.QSettings import setValue [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

示例5: saveSettings

# 需要導入模塊: from PythonQt.QtCore import QSettings [as 別名]
# 或者: from PythonQt.QtCore.QSettings import setValue [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

示例6: accept

# 需要導入模塊: from PythonQt.QtCore import QSettings [as 別名]
# 或者: from PythonQt.QtCore.QSettings import setValue [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)
開發者ID:ximion,項目名稱:Clementine-LibDanceTag,代碼行數:11,代碼來源:settingsdialog.py

示例7: saveSettings

# 需要導入模塊: from PythonQt.QtCore import QSettings [as 別名]
# 或者: from PythonQt.QtCore.QSettings import setValue [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

示例8: saveSettings

# 需要導入模塊: from PythonQt.QtCore import QSettings [as 別名]
# 或者: from PythonQt.QtCore.QSettings import setValue [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

示例9: logOut

# 需要導入模塊: from PythonQt.QtCore import QSettings [as 別名]
# 或者: from PythonQt.QtCore.QSettings import setValue [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

示例10: saveSettings

# 需要導入模塊: from PythonQt.QtCore import QSettings [as 別名]
# 或者: from PythonQt.QtCore.QSettings import setValue [as 別名]
	def saveSettings(self):
		settings = QSettings()
		settings.beginGroup("uploaders")
		settings.beginGroup("yascp")
		settings.setValue("type", self.settingsDialog.group_server.combo_type.currentText)
		settings.setValue("username", self.settingsDialog.group_server.input_username.text)
		settings.setValue("password", self.settingsDialog.group_server.input_password.text)
		settings.setValue("host", self.settingsDialog.group_server.input_host.text)
		settings.setValue("port", self.settingsDialog.group_server.input_port.text)
		settings.setValue("url", self.settingsDialog.group_upload.input_url.text)
		settings.setValue("path", self.settingsDialog.group_upload.input_path.text)
		settings.endGroup()
		settings.endGroup()
開發者ID:kacpersaw,項目名稱:yascp,代碼行數:15,代碼來源:main.py

示例11: saveSettings

# 需要導入模塊: from PythonQt.QtCore import QSettings [as 別名]
# 或者: from PythonQt.QtCore.QSettings import setValue [as 別名]
	def saveSettings(self):
		settings = QSettings()
		settings.beginGroup("uploaders")
		settings.beginGroup("ftp")
		settings.setValue("host", self.settingsDialog.group_server.input_host.text)
		settings.setValue("port", int(self.settingsDialog.group_server.input_port.value))
		settings.setValue("username", self.settingsDialog.group_server.input_username.text)
		settings.setValue("password", self.settingsDialog.group_server.input_password.text)
		settings.setValue("url", self.settingsDialog.group_server.input_url.text)
		settings.setValue("folder", self.settingsDialog.group_location.input_folder.text)
		settings.setValue("name-format", self.settingsDialog.group_location.input_name.text)
		settings.endGroup()
		settings.endGroup()
開發者ID:Rocik,項目名稱:screencloud-plugins,代碼行數:15,代碼來源:main.py

示例12: saveSettings

# 需要導入模塊: from PythonQt.QtCore import QSettings [as 別名]
# 或者: from PythonQt.QtCore.QSettings import setValue [as 別名]
 def saveSettings(self):
     settings = QSettings()
     settings.beginGroup("uploaders")
     settings.beginGroup("owncloud")
     settings.setValue("url", self.settingsDialog.group_account.input_url.text)
     settings.setValue("username", self.settingsDialog.group_account.input_username.text)
     settings.setValue("password", self.settingsDialog.group_account.input_password.text)
     settings.setValue("remote-path", self.settingsDialog.group_name.input_path.text)
     settings.setValue("connect-status", self.connectStatus)
     settings.setValue("name-format", self.settingsDialog.group_name.input_name.text)
     settings.setValue("copy-link", not self.settingsDialog.group_clipboard.radio_dontcopy.checked)
     settings.setValue("copy-direct-link", self.settingsDialog.group_clipboard.radio_directlink.checked)
     settings.endGroup()
     settings.endGroup()
開發者ID:monokles,項目名稱:screencloud-owncloud-shoxy,代碼行數:16,代碼來源:main.py


注:本文中的PythonQt.QtCore.QSettings.setValue方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。