forked from geekcomputers/Python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtk-browser.py
More file actions
28 lines (23 loc) · 647 Bytes
/
Copy pathtk-browser.py
File metadata and controls
28 lines (23 loc) · 647 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/python3
# Webbrowser v1.0
# Written by Sina Meysami
#
from tkinter import * # pip install tk-tools
import tkinterweb # pip install tkinterweb
import sys
class Browser(Tk):
def __init__(self):
super(Browser,self).__init__()
self.title("Tk Browser")
try:
browser = tkinterweb.HtmlFrame(self)
browser.load_website("https://google.com")
browser.pack(fill="both",expand=True)
except Exception:
sys.exit()
def main():
browser = Browser()
browser.mainloop()
if __name__ == "__main__":
# Webbrowser v1.0
main()