[PyGTK] Drawing PNG

2008-04-05 Thread hexusnexus
I have some PNGs with transparent backgrounds. How do I draw them using PyGTK? -- http://mail.python.org/mailman/listinfo/python-list

Re: Classes in modules

2008-04-03 Thread hexusnexus
Yeah, I was a little embarrassed putting my code up to be examined. Thanks for the reply. I typed up some classes, but I seemed to have run into some more problems. One of the classes keeps getting an error that it can't pop from an empty list. Here's the code so far: begin ma

Classes in modules

2008-04-02 Thread hexusnexus
I'm trying to get this source code split into multiple files: http://pygermanwhist.googlecode.com/files/pygermanwhist.12.py I've been trying to make so that I have one class per file for easier readability. My problem is that the interpreter keeps saying that it can't find methods and so forth

Basic class implementation question

2008-04-01 Thread hexusnexus
I can't get call a class for some reason. This must be one of those newbie questions I hear so much about: class wontwork: def really(): print "Hello World" wontwork.really() This returns (as an error): Traceback (most recent call last): File "", line 1, in wontw

Stuck in a loop

2008-03-31 Thread hexusnexus
I wrote a simple algorithm and it keeps getting stuck in a loop. I guess I'm just to tired to figure it out: compcount=[5,4,2,2] suitrank=[0,0,0,0] trump=2 l,lt=0,0 while l<4: while lt<4: if l==trump: l+=1 if l>3: break if lt==trump:

Re: Command line input

2008-03-31 Thread hexusnexus
On Mar 31, 4:04 pm, Rick Dooling <[EMAIL PROTECTED]> wrote: > On Mar 31, 2:39 pm, [EMAIL PROTECTED] wrote: > > > How do I receive input from the command line in Python? > > As long as we are all guessing, do you perhaps mean raw_input? > > my_name = raw_input("What is your name? ") > What is your n

Command line input

2008-03-31 Thread hexusnexus
How do I receive input from the command line in Python? -- http://mail.python.org/mailman/listinfo/python-list