Every time I run my program, the window doesn't pop up. It just times out after being run. My code is down below:
#Made by nullfact0r (I'd do this better but I'm trying to get this done in under a week)
#Copyright 2019
#Imports
import sys
import os
import urllib.request
import tkinter as tk
from tkinterhtml import HtmlFrame
#Functions
def main():
root = tk.Tk()
frame = HtmlFrame(root,horizontal_scrollbar="auto")
frame.grid(sticky=tk.NSEW)
#frame.set_content(urllib.request.urlopen("").read().decode())
frame.set_content(open("index.html","r").read())
root.columnconfigure(0,weight=1)
root.rowconfigure(0,weight=1)
root.mainloop()
#Main
if __name__ == "__main__":
main()