python - tkinter script doesn't create window -


when run simple script don't see window created:

from tkinter import *  window=tk()  l1=label(window,text="title") l1.grid(row=0,column=0)  l2=label(window,text="author") l2.grid(row=0,column=2)  l3=label(window,text="year") l3.grid(row=1,column=0)  l4=label(window,text="isbn") l4.grid(row=1,column=2)    window.mainloop() 

i've tried python 2.7 , python 3.6 , same results.

you need make sure time creating widget use capital letter @ start of word because of tkinters widgets this.

frame, button, label , on. problem having.

you should able figure out trackback error.

i install eclipse pydev python or py charm ide can have fault detection point out issues code before run it.

so change instances of label label


Comments

Popular posts from this blog

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -