Python 2.5 Tkinter Highlight Spinbox Entry -
this question seems trivial me can't seem find related it, , spinbox docs don't seem help.
is there way select of text in spinbox widget?
i'm trying:
self.spinbox.selection_clear() self.spinbox.selection('range', 0, end)
to no avail.
i have bound mouse-click on spinbox. first time click on it, entry text highlighted, , subsequent times not, unless boolean variable has been reset. i've had no problem doing entry widgets, spinbox seems give me trouble. using function wrong?
from experimentation, think spinbox needs explicitly have focus in order selection
anything. try:
self.spinbox.selection_clear() self.spinbox.focus_set() self.spinbox.selection('range', 0, end)
Comments
Post a Comment