This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-11-11 15:41:31

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Getting Easygui to quit

I have a problem. How do i get Easygui to quit if you click the "X"?
maxskywalker, looking at u


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#2 2011-11-11 15:43:45

Andres-Vander
Scratcher
Registered: 2010-09-16
Posts: 1000+

Re: Getting Easygui to quit

Tell him to Press Alt-F4 for a surprise (it makes your window quit)


http://www.gifsoup.com/view1/2260823/flugelhorn-feline-o.gif

Offline

 

#3 2011-11-11 16:24:42

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: Getting Easygui to quit

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.


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#4 2011-11-11 16:36:42

Andres-Vander
Scratcher
Registered: 2010-09-16
Posts: 1000+

Re: Getting Easygui to quit

Force quit should work on it too


http://www.gifsoup.com/view1/2260823/flugelhorn-feline-o.gif

Offline

 

#5 2011-11-11 16:41:59

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: Getting Easygui to quit

Andres-Vander wrote:

Force quit should work on it too

Yes, but I need code to make it quit, such as

Code:

easygui.quit()

or

Code:

easygui.exit()

Neither of these work, before you ask.


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#6 2011-11-11 16:49:05

Andres-Vander
Scratcher
Registered: 2010-09-16
Posts: 1000+

Re: Getting Easygui to quit

Google is your friend


http://www.gifsoup.com/view1/2260823/flugelhorn-feline-o.gif

Offline

 

#7 2011-11-11 17:05:19

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: Getting Easygui to quit

Andres-Vander wrote:

Google is your friend

Chrome FTW
but why....


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#8 2011-11-11 17:08:32

JJROCKER
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: Getting Easygui to quit

Is there a Manual for the program?


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://img255.imageshack.us/img255/3491/signature1y.jpg&link2=http://img577.imageshack.us/img577/5272/signature1sx.jpg&link3=http://img4.imageshack.us/img4/8514/signature1et.jpg&link4=http://i.imgur.com/POEpQyZ.png&link5=http://img163.imageshack.us/img163/4640/jjrockerfinal.jpg

Offline

 

#9 2011-11-11 18:59:27

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: Getting Easygui to quit

JJROCKER wrote:

Is there a Manual for the program?

No. It's a Python Module. The help screen doesn't say anything helpful.


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#10 2011-11-11 20:03:38

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: Getting Easygui to quit

Um, what's Easygui?  And why me?  Wow, I'm actually famous enough that you talk to me directly  big_smile   cool   big_smile   cool !

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

 

#11 2011-11-11 20:30:11

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: Getting Easygui to quit

Bumping this so I can get an answer.

Offline

 

#12 2011-11-11 23:01:04

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: Getting Easygui to quit

maxskywalker wrote:

Um, what's Easygui?  And why me?  Wow, I'm actually famous enough that you talk to me directly  big_smile   cool   big_smile   cool !

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  big_smile


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#13 2011-11-11 23:02:14

nickbrickmaster
Scratcher
Registered: 2010-02-02
Posts: 500+

Re: Getting Easygui to quit

nickbrickmaster wrote:

maxskywalker wrote:

Um, what's Easygui?  And why me?  Wow, I'm actually famous enough that you talk to me directly  big_smile   cool   big_smile   cool !

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  big_smile

EDIT:I can use sys.exit()  big_smile


Ask me what I'm doing, wait an hour than roll a die, if it's 4-6, I'm playing Skyrim, if it's 1, I'm eating, if it's 2-3 I'm programming.
Steam: nickbrickmaster | RotMG: PwnThemAll | Minecraft: nickbrickmaster | League Of Legends: BaneOfTitans

Offline

 

#14 2011-11-12 09:28:11

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: Getting Easygui to quit

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  big_smile   cool   big_smile   cool !

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  big_smile

EDIT:I can use sys.exit()  big_smile

sys.exit() closes the whole program.  Use it cautiously if there are multiple windows.

Offline

 

Board footer