Lines Matching refs:open
12 __all__ = ["Error", "open", "open_new", "open_new_tab", "get", "register"]
55 # It is recommended one does "import webbrowser" and uses webbrowser.open(url)
58 def open(url, new=0, autoraise=True):
61 if browser.open(url, new, autoraise):
66 return open(url, 1)
69 return open(url, 2)
147 def open(self, url, new=0, autoraise=True):
151 return self.open(url, 1)
154 return self.open(url, 2)
171 def open(self, url, new=0, autoraise=True):
188 def open(self, url, new=0, autoraise=True):
249 # if remote call failed, open() will try direct invocation
259 def open(self, url, new=0, autoraise=True):
270 raise Error("Bad 'new' parameter to open(); " +
351 def open(self, url, new=0, autoraise=True):
439 def open(self, url, new=0, autoraise=True):
456 # use xdg-open if around
457 if _iscommand("xdg-open"):
458 register("xdg-open", None, BackgroundBrowser("xdg-open"))
461 if "GNOME_DESKTOP_SESSION_ID" in os.environ and _iscommand("gvfs-open"):
462 register("gvfs-open", None, BackgroundBrowser("gvfs-open"))
465 if "GNOME_DESKTOP_SESSION_ID" in os.environ and _iscommand("gnome-open"):
466 register("gnome-open", None, BackgroundBrowser("gnome-open"))
541 def open(self, url, new=0, autoraise=True):
584 def open(self, url, new=0, autoraise=True):
593 # User called open, open_new or get without a browser parameter
594 script = 'open location "%s"' % url.replace('"', '%22') # opens in default browser
608 # Open pipe to AppleScript through osascript command
621 def open(self, url, new=0, autoraise=True):
623 script = 'open location "%s"' % url.replace('"', '%22') # opens in default browser
628 open location "%s"
682 -n: open new window
683 -t: open new tab""" % sys.argv[0]
699 open(url, new_win)