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


Python GUI_SETTINGS.isEmpty方法代码示例

本文整理汇总了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
开发者ID:kblw,项目名称:wot_client,代码行数:11,代码来源:logindispatcher.py

示例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
开发者ID:webiumsk,项目名称:WOT0.10.0,代码行数:11,代码来源:manager.py

示例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
开发者ID:webiumsk,项目名称:WOT-0.9.12-CT,代码行数:17,代码来源:logindispatcher.py

示例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', '')
开发者ID:kblw,项目名称:wot_client,代码行数:12,代码来源:__init__.py

示例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'))
开发者ID:kblw,项目名称:wot_client,代码行数:5,代码来源:__init__.py

示例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'))
开发者ID:kblw,项目名称:wot_client,代码行数:6,代码来源:__init__.py

示例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()
开发者ID:webiumsk,项目名称:WOT-0.9.15-CT,代码行数:14,代码来源:loginview.py


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