本文整理汇总了Python中pyjamas.ui.Focus.blur方法的典型用法代码示例。如果您正苦于以下问题:Python Focus.blur方法的具体用法?Python Focus.blur怎么用?Python Focus.blur使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyjamas.ui.Focus
的用法示例。
在下文中一共展示了Focus.blur方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setFocus
# 需要导入模块: from pyjamas.ui import Focus [as 别名]
# 或者: from pyjamas.ui.Focus import blur [as 别名]
def setFocus(self, focused):
if (focused):
Focus.focus(self.getElement())
else:
Focus.blur(self.getElement())
示例2: setFocus
# 需要导入模块: from pyjamas.ui import Focus [as 别名]
# 或者: from pyjamas.ui.Focus import blur [as 别名]
def setFocus(self, focus):
if focus:
Focus.focus(self.focusable)
else:
Focus.blur(self.focusable)
示例3: setFocus
# 需要导入模块: from pyjamas.ui import Focus [as 别名]
# 或者: from pyjamas.ui.Focus import blur [as 别名]
def setFocus(self, focused):
if focused:
Focus.focus(self.inputElem)
else:
Focus.blur(self.inputElem)
示例4: setFocus
# 需要导入模块: from pyjamas.ui import Focus [as 别名]
# 或者: from pyjamas.ui.Focus import blur [as 别名]
def setFocus(self, focused):
if (focused):
Focus.focus(self.focusable)
else:
Focus.blur(self.focusable)