Python Forum
easygui use enter instead of ok
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
easygui use enter instead of ok
Hi guys, sorry newbe question- is there a way to dismiss easygui dialog by pressing enter on the keyboard rather than clicking "ok" (or some other button) with the mouse? if not out of the box, and you have a hack, tell me :)

Easygui appears to be a wrapper around tkinter which is the GUI included with python.
I wouldn't use it myself, as tkinter is fairly easy to use, butthat's me.
I expect you will get a quicker answer from the authors about your problem
You can find them here:
I am surprised that <Enter> does not press a button. A quick peek at easygui shows dialog boxes with "default button" decoration on one of the buttons. The decoration is used to indicate which button is pressed if you type <Enter>. To select a different button you press the tab key.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Easygui Izzy32 11 4,934 Jul-12-2018, 11:19 AM
Last Post: Izzy32

Forum Jump:

User Panel Messages

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