<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
read bottom<br><br><hr id="stopSpelling">Date: Sun, 7 Jun 2009 21:48:55 +0000<br>From: alan.gauld@btinternet.com<br>Subject: Re: [Tutor] gui menu<br>To: e_mitges@hotmail.com<br>CC: tutor@python.org<br><br>

<style>
.ExternalClass DIV
{;}
</style><div style="font-family:arial, helvetica, sans-serif;font-size:10pt">Forwarding to group.<div><br></div><div>Please use Reply All when responding to the tutor group.</div><div><br></div><div>Thanks for the extra information it is helpful.<br><div> </div><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><b><span style="font-weight:bold">From:</span></b> Essah Mitges &lt;e_mitges@hotmail.com><br><b><span style="font-weight:bold">To:</span></b> alan.gauld@btinternet.com<br><b><span style="font-weight:bold">Sent:</span></b> Sunday, 7 June, 2009 10:32:27 PM<br><b><span style="font-weight:bold">Subject:</span></b> RE: [Tutor] gui menu<br></font><br>




<a rel="nofollow" href="http://osdir.com/ml/python.pygame/2002-11/msg00051.html">http://osdir.com/ml/python.pygame/2002-11/msg00051.html</a><div>I'm using this to try to program the buttons I'm tying to make 4 class to make a module called but.py</div><div>When i tryed putting a quit button on the menu the error</div><div>Traceback (most recent call last):</div><div><div>  File "C:\Users\John Doe\Desktop\WODDS2\data\back.py", line 17, in &lt;module></div><div>    qbut = QButton(175,67,"Quit.png")</div><div>  File "C:\Users\John Doe\Desktop\WODDS2\data\but.py", line 102, in __init__</div><div>    self.insideimg = pygame.image.load(imagefile).convert_alpha()</div><div>error: No video mode has been set</div><div>The thing is that I can't start my Team.py from this menu and once it is started I want the menu to exit</div><div>I can't start a new window if another button is pressed and have esc as the exit key</div><div>I can't make
 the button that displays a read only text file</div><div><br></div><br>> To: tutor@python.org<br>> From: alan.gauld@btinternet.com<br>> Date: Sun, 7 Jun 2009 22:24:15 +0100<br>> Subject: Re: [Tutor] gui menu<br>> <br>> "Essah Mitges" &lt;e_mitges@hotmail.com> wrote<br>> <br>>> import sys, pygame<br>>> pygame.init()<br>>> background = pygame.image.load(""My png image 800x 532)<br>>> backgroundRect = background.get_rect()<br>>> size = (width, height) = background.get.size()<br>>> screen = pygame.display.set_mode(size)<br>>> screen.blit(background, backgroundRect)<br>>> pygame.display.flip()<br>>> I want to use pygame to create 4 buttons from 175x67 png image<br>> <br>> I dont know what you are using for email but it seems to be<br>> scrambling your messages. I assume what you want is:<br>> <br>>> one button that initiates the Team.py file<br>>> one button that links to read a hs.txt<br>>> one button that initiates 800x532 png image in a new window<br>>>
 one button that quits pygame window<br>> <br>> Now, I'm no expert on pygame but can you tell us more<br>> specifically what you are finding so hard about putting<br>> your 4 buttons on the image?<br>> <br>> It is creating the button objects or is it linking them to  the functions?<br>> Or is it displaying them using the image?<br>> <br>> The more specific your question the more likely that someone<br>> will answer it.<br>> <br>> -- <br>> Alan Gauld<br>> Author of the Learn to Program web site<br><span>> <a href="http://www.alan-g.me.uk/">http://www.alan-g.me.uk/</a></span><br>> <br>> <br>> _______________________________________________<br>> Tutor maillist  -  Tutor@python.org<br><span>> <a href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor</a></span><br></div><br><hr>Windows Live helps you keep up with all your friends,  <a rel="nofollow" href="http://go.microsoft.com/?linkid=9660824">in one place.</a>
</div></div><div style=""></div></div></div><br /><hr />We are your photos. Share us now with  <a href='http://go.microsoft.com/?linkid=9666045' target='_new'>Windows Live Photos.</a></body>
</html>