Уведомления

Группа в Telegram: @pythonsu

#1 Апрель 3, 2012 09:47:25

typ1972
От:
Зарегистрирован: 2009-08-09
Сообщения: 66
Репутация: +  0  -
Профиль   Отправить e-mail  

Tkinter события Entry

Народ, есть у виджета Entry такие события как “До обновления”, “После обновления”, “Обновление”????



Офлайн

#2 Апрель 8, 2012 01:07:30

vkopey
От:
Зарегистрирован: 2010-09-26
Сообщения: 116
Репутация: +  3  -
Профиль   Отправить e-mail  

Tkinter события Entry

О событиях:
Events and Bindings
Не совсем понял вопрос, но попробуй в обработчиках return ‘break’
You could use the bind_class method to modify the bindings on the class level, but that would change the behavior of all text widgets in the application. An easier solution is to prevent Tkinter from propagating the event to other handlers; just return the string “break” from your event handler:

def ignore(event):
    return "break"
text.bind("<Return>", ignore)



Офлайн

#3 Апрель 8, 2012 23:08:07

sp3
От:
Зарегистрирован: 2010-01-12
Сообщения: 405
Репутация: +  18  -
Профиль   Отправить e-mail  

Tkinter события Entry

KeyPress - в Entry символа еще нет, можно заигнорить
KeyRelease -после отпускания кнопки, уже есть



Офлайн

Board footer

Модераторировать

Powered by DjangoBB

Lo-Fi Version