def METHOD_NAME(self, event) -> None:
    work = self.wt_selector.work
    url = "/w%d" % work.pos
    code = f"window.open('{url}')" if self.new_tab.value else f"window.location.href='{url}'"
    self.js_panel.execute_js(code)