Python Forum
[Tkinter] selecting buttons with keyboard
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] selecting buttons with keyboard
#3
You need to bind your widget with the Return string as well as the function to run when you hit enter
my_textbox.bind("<Return>", self.func_to_run)
Output:
my_textbox.bind("<Return>", self.func_to_run)
Recommended Tutorials:
Reply


Messages In This Thread
selecting buttons with keyboard - by noissue - Oct-05-2016, 12:21 PM
RE: selecting buttons with keyboard - by j.crater - Oct-05-2016, 12:32 PM
RE: selecting buttons with keyboard - by metulburr - Oct-05-2016, 12:43 PM
RE: selecting buttons with keyboard - by noissue - Oct-05-2016, 12:51 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020