def _window(self):
"""Return the view that should receive any actions."""
window = None
try:
window = self.window
except AttributeError:
try:
window = self.view.window()
except AttributeError:
raise AttributeError(
'ViCommandMixin must be used with a TextCommand or a WindowCommand class')
return window
评论列表
文章目录