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
#1
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 :)

Thanks!
Udi
Reply
#2
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: https://pypi.org/project/easygui/
Reply
#3
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Easygui [HELP] - How could I convert my enterbox into a multenterbox in python? C0D3R 5 2,211 Apr-05-2022, 04:15 AM
Last Post: deanhystad
  Easygui Izzy32 11 8,214 Jul-12-2018, 11:19 AM
Last Post: Izzy32

Forum Jump:

User Panel Messages

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