How to remove highlight from entry in pygtk?

心不动则不痛 提交于 2019-12-24 13:42:36

问题


i have a small GUI that i created, and when it fires up, the 'first' gtk.Entry that i have created is always highlighted (in a series of entries).

essentially, here is how i create it:

my_entry = gtk.Entry(1)
my_entry.set_width_chars(1)
my_entry.set_alignment(0.5)
my_entry.set_text('1')

i then go on to create several more entries. i then call 'show' on them all at the same time, and then use 'pack_start' to put them into a vbox.

whenever i start the GUI, the '1' is highlighted. how can i remove this highlight?

thanks. just can't figure this one out.

来源:https://stackoverflow.com/questions/20225691/how-to-remove-highlight-from-entry-in-pygtk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!