Ejemplo n.º 1
0
def run_window_command(cmd, args=None, window=None):
    if not window:
        window = _active_window()
    _log.info('command: %s %s', cmd, args)
    window.run_command(cmd, args)
Ejemplo n.º 2
0
 def setUp(self):
     self.view = _active_window().new_file()
     self.view.set_scratch(True)
Ejemplo n.º 3
0
def run_window_command(cmd: str, args: dict = None, window=None) -> None:
    if not window:
        window = _active_window()
    _log.info('command: %s %s', cmd, args)
    window.run_command(cmd, args)