Skip to content

Commit 3b3a6d9

Browse files
authored
Add files via upload
1 parent d7de678 commit 3b3a6d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from tkinter import *
2-
import datetime as dt
32
# used to close the windows
43
def Close_start():
54
start.destroy()
@@ -19,7 +18,9 @@ def Write(html):
1918
def Main_win():
2019
# sets variables to global so they can be accessed in another function
2120
global main, title, heading, body, SAVE
21+
# closes first window
2222
Close_start()
23+
# makes editor window
2324
main = Tk()
2425
main.title("HTML Creator")
2526
main.geometry("1000x700")
@@ -81,6 +82,6 @@ def CREATE():
8182
HTML= "<html>\n<head>\n<title>" + HTML_title + "</title></head>\n<body>\n<h2>" + HTML_head +"</h2>\n<p>"+ HTML_body
8283
HTML = HTML + "</p></body>\n</html>"
8384
Write(HTML)
84-
SAVE.insert(END, "Saved" + str(dt.time))
85+
SAVE.insert(END, "Saved")
8586
SAVE["state"] = DISABLED
8687
Main()

0 commit comments

Comments
 (0)