本文整理汇总了Python中gui.GUI_SETTINGS.isEmpty方法的典型用法代码示例。如果您正苦于以下问题:Python GUI_SETTINGS.isEmpty方法的具体用法?Python GUI_SETTINGS.isEmpty怎么用?Python GUI_SETTINGS.isEmpty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gui.GUI_SETTINGS
的用法示例。
在下文中一共展示了GUI_SETTINGS.isEmpty方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: showSecurityMessage
# 需要导入模块: from gui import GUI_SETTINGS [as 别名]
# 或者: from gui.GUI_SETTINGS import isEmpty [as 别名]
def showSecurityMessage(self):
if self.__securityMsgType is not None:
securityLink = ''
if not GUI_SETTINGS.isEmpty('securitySettingsURL'):
linkText = makeString(SYSTEM_MESSAGES.SECURITYMESSAGE_CHANGE_SETINGS)
securityLink = makeHtmlString('html_templates:lobby/system_messages', 'link', {'text': linkText,
'linkType': 'securityLink'})
SystemMessages.pushI18nMessage('#system_messages:securityMessage/%s' % self.__securityMsgType, type=SystemMessages.SM_TYPE.Warning, link=securityLink)
self.__securityMsgType = None
示例2: _showSecurityMessage
# 需要导入模块: from gui import GUI_SETTINGS [as 别名]
# 或者: from gui.GUI_SETTINGS import isEmpty [as 别名]
def _showSecurityMessage(self, responseData):
securityWarningType = responseData.get('security_msg')
if securityWarningType is not None:
securityLink = ''
if not GUI_SETTINGS.isEmpty('securitySettingsURL'):
securityLink = makeHtmlString('html_templates:lobby/system_messages', 'link', {'text': _ms(SYSTEM_MESSAGES.SECURITYMESSAGE_CHANGE_SETINGS),
'linkType': 'securityLink'})
SystemMessages.pushI18nMessage('#system_messages:securityMessage/%s' % securityWarningType, type=SystemMessages.SM_TYPE.Warning, link=securityLink)
return
示例3: showSecurityMessage
# 需要导入模块: from gui import GUI_SETTINGS [as 别名]
# 或者: from gui.GUI_SETTINGS import isEmpty [as 别名]
def showSecurityMessage(self):
if self.__securityMsgType is not None:
securityLink = ""
if not GUI_SETTINGS.isEmpty("securitySettingsURL"):
linkText = makeString(SYSTEM_MESSAGES.SECURITYMESSAGE_CHANGE_SETINGS)
securityLink = makeHtmlString(
"html_templates:lobby/system_messages", "link", {"text": linkText, "linkType": "securityLink"}
)
SystemMessages.pushI18nMessage(
"#system_messages:securityMessage/%s" % self.__securityMsgType,
type=SystemMessages.SM_TYPE.Warning,
link=securityLink,
)
self.__securityMsgType = None
return
示例4: changeAccount
# 需要导入模块: from gui import GUI_SETTINGS [as 别名]
# 或者: from gui.GUI_SETTINGS import isEmpty [as 别名]
def changeAccount(self):
self.__rememberMe = False
self.as_setDefaultValuesS('', '', False, GUI_SETTINGS.rememberPassVisible, GUI_SETTINGS.igrCredentialsReset, not GUI_SETTINGS.isEmpty('recoveryPswdURL'))
self.__showRequiredLoginScreen()
self.as_setErrorMessageS(self.__socialNetworkLogin.getLogoutWarning(self.__lastLoginType), 0)
self.__loginPreferences.writeString('login', '')
self.__loginPreferences.writeBool('rememberPwd', False)
self.__loginPreferences.writeString('lastLoginType', 'basic')
self.__loginPreferences.writeString('token2', '')
self.__loginPreferences.writeString('user', '')
示例5: onHandleInvalidPasswordWithToken
# 需要导入模块: from gui import GUI_SETTINGS [as 别名]
# 或者: from gui.GUI_SETTINGS import isEmpty [as 别名]
def onHandleInvalidPasswordWithToken(self, user, rememberPwd):
self.__showRequiredLoginScreen()
self.as_setDefaultValuesS(user, '', rememberPwd, GUI_SETTINGS.rememberPassVisible, GUI_SETTINGS.igrCredentialsReset, not GUI_SETTINGS.isEmpty('recoveryPswdURL'))
示例6: onConfigLoaded
# 需要导入模块: from gui import GUI_SETTINGS [as 别名]
# 或者: from gui.GUI_SETTINGS import isEmpty [as 别名]
def onConfigLoaded(self, user, password, rememberPwd, isRememberPwd):
if GUI_SETTINGS.socialNetworkLogin['enabled']:
user = user if self.__lastLoginType == 'basic' else ''
self.as_setDefaultValuesS(user, password, rememberPwd, isRememberPwd, GUI_SETTINGS.igrCredentialsReset, not GUI_SETTINGS.isEmpty('recoveryPswdURL'))
示例7: _setData
# 需要导入模块: from gui import GUI_SETTINGS [as 别名]
# 或者: from gui.GUI_SETTINGS import isEmpty [as 别名]
def _setData(self):
self._rememberUser = g_loginManager.getPreference('remember_user')
if self._rememberUser:
password = '*' * g_loginManager.getPreference('password_length')
else:
password = ''
if GUI_SETTINGS.clearLoginValue:
login = password = ''
else:
login = g_loginManager.getPreference('login')
self.as_setDefaultValuesS(login, password, self._rememberUser, GUI_SETTINGS.rememberPassVisible, GUI_SETTINGS.igrCredentialsReset, not GUI_SETTINGS.isEmpty('recoveryPswdURL'))
self.__updateServersList()