Skip to content

Commit

Permalink
Create tk-browser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mrprogrammer2938 authored Mar 11, 2022
1 parent b7f02ee commit fdf74ff
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Webbrowser/tk-browser.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,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()

0 comments on commit fdf74ff

Please sign in to comment.