I have a problem. How do i get Easygui to quit if you click the "X"?
maxskywalker, looking at u
Offline
Tell him to Press Alt-F4 for a surprise (it makes your window quit)

Offline
Andres-Vander wrote:
Tell him to Press Alt-F4 for a surprise (it makes your window quit)
That's interesting, but easygui is a program, not a person. I need code to make the window close.
Offline
Force quit should work on it too

Offline
Andres-Vander wrote:
Force quit should work on it too
Yes, but I need code to make it quit, such as
easygui.quit()
or
easygui.exit()
Neither of these work, before you ask.
Offline
Google is your friend

Offline
Andres-Vander wrote:
Google is your friend
Chrome FTW
but why....
Offline
JJROCKER wrote:
Is there a Manual for the program?
No. It's a Python Module. The help screen doesn't say anything helpful.
Offline
Um, what's Easygui? And why me? Wow, I'm actually famous enough that you talk to me directly
!
Edit: Still no idea what easygui is, but common things are Esc, Ctrl+W, and Ctrl+Alt+Del.
Edit: Oh, and also, assuming that 'easygui' is the object you have bound to the Easygui class/module/whatever, try easygui.close() . It works with closing text files.
Last edited by maxskywalker (2011-11-11 20:15:01)
Offline
Bumping this so I can get an answer.
Offline
maxskywalker wrote:
Um, what's Easygui? And why me? Wow, I'm actually famous enough that you talk to me directly
![]()
![]()
![]()
!
Edit: Still no idea what easygui is, but common things are Esc, Ctrl+W, and Ctrl+Alt+Del.
Edit: Oh, and also, assuming that 'easygui' is the object you have bound to the Easygui class/module/whatever, try easygui.close() . It works with closing text files.
I'll try it. And I know you for programming skillage. I come to you for all questions I cannot answer on python.com. Easygui allows you to easily make GUIs. It came with Python 2.6 for me, so try import easygui
Offline
nickbrickmaster wrote:
maxskywalker wrote:
Um, what's Easygui? And why me? Wow, I'm actually famous enough that you talk to me directly
![]()
![]()
![]()
!
Edit: Still no idea what easygui is, but common things are Esc, Ctrl+W, and Ctrl+Alt+Del.
Edit: Oh, and also, assuming that 'easygui' is the object you have bound to the Easygui class/module/whatever, try easygui.close() . It works with closing text files.I'll try it. And I know you for programming skillage. I come to you for all questions I cannot answer on python.com. Easygui allows you to easily make GUIs. It came with Python 2.6 for me, so try import easygui
![]()
EDIT:I can use sys.exit()
Offline
nickbrickmaster wrote:
nickbrickmaster wrote:
maxskywalker wrote:
Um, what's Easygui? And why me? Wow, I'm actually famous enough that you talk to me directly
![]()
![]()
![]()
!
Edit: Still no idea what easygui is, but common things are Esc, Ctrl+W, and Ctrl+Alt+Del.
Edit: Oh, and also, assuming that 'easygui' is the object you have bound to the Easygui class/module/whatever, try easygui.close() . It works with closing text files.I'll try it. And I know you for programming skillage. I come to you for all questions I cannot answer on python.com. Easygui allows you to easily make GUIs. It came with Python 2.6 for me, so try import easygui
![]()
EDIT:I can use sys.exit()
![]()
sys.exit() closes the whole program. Use it cautiously if there are multiple windows.
Offline