user interface - Python : Virtual keyboard buttons not showing -


i trying onscreen keyboard using python 3.5. when try run program, space button appear not rest.

buttons = [ 'q','w','e','r','t','y','u','i','o','p','<-','7','8','9','-', 'a','s','d','f','g','h','j','k','l','[',']','4','5','6','+', 'z','x','c','v','b','n','m',',','.','?','&','1','2','3','/', 'space', ] label1 = label(keyboard_app,text=("\n")).grid(row = 0,columnspan = 1) entry = entry(keyboard_app, width = 128) entry.grid(row = 1, columnspan = 15)  varrow = 2 varcolumn = 0  button in buttons:  command = lambda x = button: select(x) if button != "space":     tkinter.button(keyboard_app, text = button, width = 5,bg = "#000000",fg = "#ffffff",     activebackground = "#ffffff", activeforeground = "#000000", relief = 'raised',padx = 4,     pady = 4, bd = 4, command = command).grid(row = varrow, column = varcolumn)  if button == "space":     tkinter.button(keyboard_app, text = button, width = 60, bg = "#000000",fg = "#ffffff",     activebackground = "#ffffff", activeforeground = "#000000", relief = 'raised',     padx = 4, pady = 4, bd = 4, command = command).grid(row = 6, columnspan = 16) 


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -