def open_path(self): """Open path of current node.""" node = self.tree_main.currentItem() file_name = getpath(node) if system() == "Darwin": thread = Thread(target=os_system, args=(f"open: {file_name}", )) thread.start() else: QDesktopServices.openUrl(QUrl(file_name)) print(f"Open: {file_name}")
def __mde_tw(self): """Mde website.""" QDesktopServices.openUrl(QUrl("http://mde.tw"))
def open_path(self): """Open path of current node.""" node = self.tree_main.currentItem() filename = getpath(node) QDesktopServices.openUrl(QUrl(filename)) print("Open: {}".format(filename))
def _open_url(url: str): """Use to open link.""" QDesktopServices.openUrl(QUrl(url))
def __open_url(self, url: str): """Use to open link.""" QDesktopServices.openUrl(QUrl(url)) self.showMinimized()