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


Python QSettings.value方法代碼示例

本文整理匯總了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", ""))
開發者ID:ximion,項目名稱:Clementine-LibDanceTag,代碼行數:9,代碼來源:servicebase.py

示例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", ""))
開發者ID:ximion,項目名稱:Clementine-LibDanceTag,代碼行數:9,代碼來源:settingsdialog.py

示例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()
開發者ID:olav-st,項目名稱:screencloud-plugins,代碼行數:10,代碼來源:main.py

示例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()
開發者ID:Ichbinjoe,項目名稱:screencloud-plugins,代碼行數:10,代碼來源:main.py

示例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()
開發者ID:RobKellett,項目名稱:ScreenCloud-Uguu,代碼行數:12,代碼來源:main.py

示例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()
開發者ID:teryanik,項目名稱:screencloud-plugins,代碼行數:13,代碼來源:main.py

示例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()
開發者ID:Nothing4You,項目名稱:screencloud-plugins,代碼行數:9,代碼來源:main.py

示例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()
開發者ID:bcooksey,項目名稱:zapier-screencloud,代碼行數:9,代碼來源:main.py

示例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()
開發者ID:monokles,項目名稱:screencloud-owncloud-shoxy,代碼行數:16,代碼來源:main.py

示例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()
開發者ID:Rocik,項目名稱:screencloud-plugins,代碼行數:15,代碼來源:main.py

示例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()
開發者ID:kacpersaw,項目名稱:yascp,代碼行數:21,代碼來源:main.py

示例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
開發者ID:ItTakesTwo,項目名稱:screencloud,代碼行數:8,代碼來源:ScreenCloud.py


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