问题
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