MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

Webbrowser/tk-browser.py:12–20  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10
11class Browser(Tk):
12 def __init__(self):
13 super(Browser, self).__init__()
14 self.title("Tk Browser")
15 try:
16 browser = tkinterweb.HtmlFrame(self)
17 browser.load_website("https://google.com")
18 browser.pack(fill="both", expand=True)
19 except Exception:
20 sys.exit()
21
22
23def main():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected