本文整理汇总了Python中spyderlib.plugins.SpyderPluginMixin.visibility_changed方法的典型用法代码示例。如果您正苦于以下问题:Python SpyderPluginMixin.visibility_changed方法的具体用法?Python SpyderPluginMixin.visibility_changed怎么用?Python SpyderPluginMixin.visibility_changed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类spyderlib.plugins.SpyderPluginMixin
的用法示例。
在下文中一共展示了SpyderPluginMixin.visibility_changed方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: visibility_changed
# 需要导入模块: from spyderlib.plugins import SpyderPluginMixin [as 别名]
# 或者: from spyderlib.plugins.SpyderPluginMixin import visibility_changed [as 别名]
def visibility_changed(self, enable):
"""DockWidget visibility has changed"""
SpyderPluginMixin.visibility_changed(self, enable)
if enable and not self.is_server_running():
self.initialize()
示例2: visibility_changed
# 需要导入模块: from spyderlib.plugins import SpyderPluginMixin [as 别名]
# 或者: from spyderlib.plugins.SpyderPluginMixin import visibility_changed [as 别名]
def visibility_changed(self, enable):
"""DockWidget visibility has changed"""
SpyderPluginMixin.visibility_changed(self, enable)
if enable:
self.outlineexplorer_is_visible.emit()
示例3: visibility_changed
# 需要导入模块: from spyderlib.plugins import SpyderPluginMixin [as 别名]
# 或者: from spyderlib.plugins.SpyderPluginMixin import visibility_changed [as 别名]
def visibility_changed(self, enable):
"""DockWidget visibility has changed"""
SpyderPluginMixin.visibility_changed(self, enable)
for nsb in self.shellwidgets.values():
nsb.visibility_changed(enable and nsb is self.currentWidget())