Re: [Tutor] Pygame and TkInter

2012-09-09 Thread Dwight Hutto
Please beieve me when I say use Blender, and it's Python API. It's a 3-D app, and you can code python with it. The game engine will make it muche easier for you to do 'new age' gaming. -- Best Regards, David Hutto *CEO:* *http://www.hitwebdevelopment.com* ___

Re: [Tutor] Pygame and TkInter

2012-09-09 Thread Greg Nielsen
Eryksun, That there is some classy code work. I actually found that same answer and was about to try it when I saw your reply. It's going to take some time to figure out everything you did there and how to apply it to my project, but this is exactly what I needed. Thanks for the assist! Greg

Re: [Tutor] Pygame and TkInter

2012-09-09 Thread eryksun
On Sun, Sep 9, 2012 at 5:58 PM, Greg Nielsen wrote: > Hello Tutor, > > Quick question. Working on a new game and want to build in a GUI. > TkInter seems to fit the bill except for one small item. Both Pygame and > TkInter create windows. (Screen in Pygame, and the Root widget in TkInter) > Is

Re: [Tutor] Help - My First Program Fails

2012-09-09 Thread Steven D'Aprano
Please, please, PLEASE do not reply to a digest without deleting the irrelevant text from your email! We don't need to read HUNDREDS of lines of text we've already seen before. When you want to start a *new* question, ALWAYS start a fresh, blank email, set the "To" address to tutor@python.org,

Re: [Tutor] web frameworks

2012-09-09 Thread Matthew Ngaha
thanks for all the help guys. Cherrypy it is. i will take a look at some cgi tutorials first, as Alan suggested, to get a good understanding of how things work. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://

[Tutor] Help - My First Program Fails

2012-09-09 Thread tayo rotimi
ew it was something like that but forget that omitting "this." meant the variables were limited in scope to that method. I have seen lamba but do not understand it. The project requires four buttons, each one turns the same text a different color. The class is also Python 3 based.  :)

Re: [Tutor] I Need Help - further details now provided.

2012-09-09 Thread Matthew Ngaha
> What instructions are you talking about? > > I'm sure that was very clear in your head when you wrote that, but think > about how it looks to us. We could be reading your email hours, days, > even months later. We see your comment about complicated instructions, > but all context is lost and we h

Re: [Tutor] I Need Help - further details now provided.

2012-09-09 Thread Steven D'Aprano
On Sun, Sep 09, 2012 at 08:20:19PM +0100, Matthew Ngaha wrote: > SORRY i wrote to you not the mailing list:( > > im a beginner myself, and those instructions seem very complicated for > me. What instructions are you talking about? I'm sure that was very clear in your head when you wrote that, b

Re: [Tutor] I Need Help - further details now provided.

2012-09-09 Thread Walter Prins
Hi, On 9 September 2012 23:02, Alan Gauld wrote: > 2) Try downloading and installing 32bit Python. 64bit windows can run the 32 > bit version too and it might install more successfully. But I'd try > ActiveState first - its free but ISTR you need to register. Just to +1 this, and to confirm that

Re: [Tutor] web frameworks

2012-09-09 Thread Steven D'Aprano
On Sun, Sep 09, 2012 at 10:07:30PM +0100, Matthew Ngaha wrote: > sorry steven i keep replying to sender and not tutor:( That's fine, but there's no point apologising publically if you don't resend your question to the tutor list. You asked: [quote] oh? is cherrypy compaitable with Python 3? >

Re: [Tutor] Pygame and TkInter

2012-09-09 Thread Alan Gauld
On 09/09/12 22:58, Greg Nielsen wrote: TkInter) Is there a way to combined these two so I can use all my Pygame sprites and objects and any TkInter bars and buttons all in one screen? This is a bit off the beaten track for the tutor list, although you may get lucky. But I'd recommend askin

Re: [Tutor] I Need Help - thank you all, its now done

2012-09-09 Thread tayo rotimi
Thank you, Matthew and all, I have just installed the Python IDLE. Now I an ready to begin learning how to write programs. That means you may see more questions from me as I am ready to leverage on your experiences. I appreciate everyone who has helped and guided me in one way or the other. Re

Re: [Tutor] web frameworks

2012-09-09 Thread Alan Gauld
On 09/09/12 20:41, Matthew Ngaha wrote: a very very very simple web framework would not be too much work for me to study once in while. I decided on Flask because i read it's the simpliest framework They nearly all claim that :-) supported on Python 3. i thought cherrypy, but was told it's

Re: [Tutor] I Need Help - further details now provided.

2012-09-09 Thread Alan Gauld
On 09/09/12 19:03, tayo rotimi wrote: * which installer link you click on - on the page look for and click on the following:Python 2.7.3 Windows X86-64 Installer (Windows AMD64 / Intel 64 / X86-64 binary [1]

[Tutor] Pygame and TkInter

2012-09-09 Thread Greg Nielsen
Hello Tutor, Quick question. Working on a new game and want to build in a GUI. TkInter seems to fit the bill except for one small item. Both Pygame and TkInter create windows. (Screen in Pygame, and the Root widget in TkInter) Is there a way to combined these two so I can use all my Pygame sp

Re: [Tutor] I Need Help

2012-09-09 Thread tayo rotimi
Hi Matthew, The link you provided, http://www.programgames.com/page4.html, leads to where I can only download the book but not the software. I will appreciate if you could click on it to check again and provide me with further guide. Regards. Tayo. SORRY i wrote to you not the mailing list:(

Re: [Tutor] Help with class in class

2012-09-09 Thread Dave Angel
On 09/09/2012 04:56 PM, leam hall wrote: > self.blue = Button(root, text="Blue", > command=self.change_text_color("blue")) > self.blue.pack(side=LEFT) > self.green = Button(root, text="Green", > command=self.change_text_color("green")) > self.green.pack(side=LEFT) > > To follow up,

Re: [Tutor] web frameworks

2012-09-09 Thread Matthew Ngaha
sorry steven i keep replying to sender and not tutor:( ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Help with class in class

2012-09-09 Thread leam hall
self.blue = Button(root, text="Blue", command=self.change_text_color("blue")) self.blue.pack(side=LEFT) self.green = Button(root, text="Green", command=self.change_text_color("green")) self.green.pack(side=LEFT) To follow up, I've added a second button. Of course, it doesn't work,

Re: [Tutor] web frameworks

2012-09-09 Thread Steven D'Aprano
On 10/09/12 05:41, Matthew Ngaha wrote: [...] i thought cherrypy, but was told it's not nearly as simple as Flask, and since my main focus is learning GUIs, a simple web framework will be ideal only to understand how they work. Understanding *how they work* is not going to be simple. Web frame

[Tutor] web frameworks

2012-09-09 Thread Matthew Ngaha
Hi all, i had a recent post about learning about guis and web applications. i decided to try guis 1st, but i also decided that maybe a very very very simple web framework would not be too much work for me to study once in while. I decided on Flask because i read it's the simpliest framework out of

Re: [Tutor] I Need Help - further details now provided.

2012-09-09 Thread Matthew Ngaha
SORRY i wrote to you not the mailing list:( im a beginner myself, and those instructions seem very complicated for me. But i did install Python and everything included with no problem. You need at least Python 3.1 for this book we have. its what the author recommended. version 2.7 as you have s

Re: [Tutor] Help with class in class

2012-09-09 Thread leam hall
On Sun, Sep 9, 2012 at 12:12 PM, Peter Otten <__pete...@web.de> wrote: > the above will no longer complain about a missing attribute. > > > root = Tk() > > project = ch8_Project(master=root) > > project.mainloop() > > > Another problem that caught my attention: > > > self.green = Button(root,

Re: [Tutor] I Need Help - further details now provided.

2012-09-09 Thread tayo rotimi
Hi Steven, Please see my answers (bold, and in blue) after each of your questions below. Hope you would be able to help, with these further notes I have provided. Regards. Tayo Message: 3 Date: Sun, 09 Sep 2012 02:44:33 +1000 From: Steven D'Aprano To: tutor@python.org Subject: Re: [Tutor]

Re: [Tutor] Help with class in class

2012-09-09 Thread Peter Otten
leam hall wrote: > I'm in the O'Reilly Python 2 class, so pointers to learning would be > better than just answers, please. My brain is a bit slow but needs to go > forward. > > Line 16 calls line 31. Rather, it is supposed to. I'm trying to figure out > why I get > > File "./ch8_project.py",

Re: [Tutor] Help with class in class

2012-09-09 Thread Kwpolska
On Sun, Sep 9, 2012 at 5:43 PM, leam hall wrote: > Of course, showing the code might help... > > http://bpaste.net/show/44593/ > > Thanks! > > Leam > > > On Sun, Sep 9, 2012 at 10:42 AM, leam hall wrote: >> >> I'm in the O'Reilly Python 2 class, so pointers to learning would be >> better than ju

Re: [Tutor] Help with class in class

2012-09-09 Thread leam hall
Of course, showing the code might help... http://bpaste.net/show/44593/ Thanks! Leam On Sun, Sep 9, 2012 at 10:42 AM, leam hall wrote: > I'm in the O'Reilly Python 2 class, so pointers to learning would be > better than just answers, please. My brain is a bit slow but needs to go > forward.

[Tutor] Help with class in class

2012-09-09 Thread leam hall
I'm in the O'Reilly Python 2 class, so pointers to learning would be better than just answers, please. My brain is a bit slow but needs to go forward. Line 16 calls line 31. Rather, it is supposed to. I'm trying to figure out why I get File "./ch8_project.py", line 31, in change_text_color

Re: [Tutor] Beginner Q: What does the double underscore mean __ ?

2012-09-09 Thread Dave Angel
On 09/09/2012 08:16 AM, Aaron Pilgrim wrote: > Thank you for the response! > You're welcome. A couple points of order: please don't top-post. There is a standard here, which makes much more sense than the Microsoft-imposed "put everything backwards" approach. Put your new text AFTER whatever

Re: [Tutor] Beginner Q: What does the double underscore mean __ ?

2012-09-09 Thread Mark Lawrence
On 09/09/2012 12:27, Aaron Pilgrim wrote: Hi, I was trying to teach myself some python from a book and I have seen double underscores used. What does the __ mean and how do I know when to use it? for example: __name__==’__main__’ (source) Pilgrim, Mark (2009-10-23). Dive Into Python 3 (Books f

Re: [Tutor] Beginner Q: What does the double underscore mean __ ?

2012-09-09 Thread Dave Angel
On 09/09/2012 07:27 AM, Aaron Pilgrim wrote: > Hi, > I was trying to teach myself some python from a book and I have seen > double underscores used. > What does the __ mean and how do I know when to use it? > > for example: > > __name__==’__main__’ > > (source) > Pilgrim, Mark (2009-10-23). Dive In

[Tutor] Beginner Q: What does the double underscore mean __ ?

2012-09-09 Thread Aaron Pilgrim
Hi, I was trying to teach myself some python from a book and I have seen double underscores used. What does the __ mean and how do I know when to use it? for example: __name__==’__main__’ (source) Pilgrim, Mark (2009-10-23). Dive Into Python 3 (Books for Professionals by Professionals) (Kindle L