May-08-2021, 01:34 PM
Sure:
#nam: name of project #wid: width #leng: length #imports: import directory #exports: export directory #importFiles: files that have been imported def editor(nam, wid, leng, imports, exports, directory, importFiles): widthLines = int(wid) - 1 lengthLines = int(leng) - 1 editor = Tk() editor.title("Editing "+nam) editor.geometry("800x700") nameLBL = Label(editor, text=nam, font=("Arial", 15)).pack() drawCanv = Canvas(editor, bg='white', width=800, height=500) drawCanv.pack() wid = int(wid) leng = int(leng) for x in range(wid): for y in range(leng): drawCanv.create_rectangle(x, y, x+30, y+30, outline='black')