[Tutor] Distutils Font Error

2011-04-18 Thread Greg Nielsen
Dear Fellow Python Users, I am currently working on a small Python 3.1.3 game on a Windows 7 machine and am attempting to freezing it using Distutils and cx_freeze so I can share it with friends and family. Several attempts in I reached an error that I am unable to fix and was hoping for some

[Tutor] Unbound Method Error

2011-04-25 Thread Greg Nielsen
Because of the limited Python 3 support, I've decided to attempt to push my over 600 lines of code back to Python 2.6. Surprisingly, it worked well for the most part, except for the following section of code. crash = pygame.sprite.spritecollide(playerCar, computerSprites, False) if crash:

Re: [Tutor] Unbound Method Error

2011-04-25 Thread Greg Nielsen
First and foremost, thank you Steven for your quick and well written response. It means a lot to me that you took the time out of your day to answer my question, and it has really helped me better understand what it going on. So the full trace back for my error is as follows: Traceback (most rece

Re: [Tutor] Unbound Method Error

2011-04-25 Thread Greg Nielsen
Ramit, First, thank you for your input and insight into my problem, I believe that the code you came up with should not only be more efficient, but also clear up the last of my issues. I just have a quick question on the isinstance command you called. How exactly do I get the code to recogniz

Re: [Tutor] Unbound Method Error

2011-04-25 Thread Greg Nielsen
And it works! Thank you once again to both Steven and Ramit for your peerless insight into the workings of Python and for taking time out of you day to help me work my code back to Python 2. I have learned much by talking with both of you over the last day or so. Greg _

[Tutor] Splitting a Tuple in Python 2.7

2011-12-05 Thread Greg Nielsen
The following gets returned from a function that I am calling. (120, 400) While I can use the Tuple as is in my program, I would like the ability to change one or even both of the numbers depending on other events that happen. So here is my question, is there a way to either 1) save each part of

Re: [Tutor] Sandbox Game

2012-02-06 Thread Greg Nielsen
Nate, I myself am a newer programmer with most of my experience in the use of pygame, perhaps I could help point you in the right direction. First, there is a lot of cool stuff over at the main pygame website, and a lot of the users will post projects with images, general overviews, and a lin

[Tutor] Class Nesting

2012-02-06 Thread Greg Nielsen
Hello List, My name is Greg, and while working on a project I've come across a rather interesting problem. I'm trying to create a rough model of a star cluster and all of the stars and planets contained within. Kind of a cool project; hopefully it should work a little like this. I create a St

[Tutor] Position issue with Pygame

2012-03-13 Thread Greg Nielsen
Hey everyone, Still working on that racing game project. I have come quite a far way and will hopefully release something soon, but I wrote some bad code and can't seem to fix it. Im most likely just missing something really silly because I wrote this code at 2am yesterday. Here it is de

[Tutor] Math Function and Python

2012-07-01 Thread Greg Nielsen
Hello Tutor, I'm having some trouble with a mathematical function in my code. I am attempting to create a realistic acceleration in an object, slower to speed up at its min and max speeds and fastest in the middle. To keep the math simpl(er), I just wrote this function for a parabola, which m

[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] 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-10 Thread Greg Nielsen
Ok kids, settle down. Quick question to Dwight; why Blender? Im not going for "new age" like that. (Personally when you spend that much time making a game look nice, the core mechinics suffer.) However, it does look rather shiny and powerful. All I really need though are some GUI components to add

Re: [Tutor] Pygame and TkInter

2012-09-10 Thread Greg Nielsen
I will admit that the whole Blender project is cool, but Jerry has a point. All I wanted to know was how to get Pygame and TkInter to work together, and I got a solid answer about 12 hours ago. (Check out Eryksun's code, it's beyond cool, past awsome, and close to sexy.) As such, I am considering t