Creating the Template Class I'm using tkinter, tkinter.ttk, pip, PIL, os, sys, and urllib.request
class Template:
def __init__(self,version):
self.version = version
templateList.append(self)
templateVersion.append(version)
def selectVersion():
for s in templateList:
if s.version == selectedVersion.get():
version.set(s.version)
for s in templateList:
if selectedVersion.get() == ("c400"):
Buttons being Created assigning images to them and giving them a command.
img = ImageTk.PhotoImage(Image.open("clearButton.jpg"))
clear = tk.Button(frame,padx = (-5), pady = (-5),bg = "#616570", image = img,command = lambda: (monHours.delete(0, 'end'))
clear.grid(column = 0,row = 20)
runImg = ImageTk.PhotoImage(Image.open("runButton.png"))
run = tk.Button(frame,image = runImg,bg = "#616570", command = runPy)
run.grid(column = 4,row = 20)