Forum: Python Mar 13th, 2009 |
| Replies: 6 Views: 1,403 Well, the laptop is brand new, so it's the first and only version I've installed. Is there anywhere I can download the missing .dll? |
Forum: Python Mar 13th, 2009 |
| Replies: 6 Views: 1,403 The version I installed ends in '26', so I thought it should work... I'll double check though, I'm using Python 2.6.1 |
Forum: Python Mar 13th, 2009 |
| Replies: 6 Views: 1,403 I installed successfully, it is in python26/Lib/site_packages but it won't import. Here's the error message:
>>> import pygame
Traceback (most recent call last):
File "<pyshell#0>", line 1,... |
Forum: Python Sep 22nd, 2008 |
| Replies: 1 Views: 424 Please can someone respond? I've fixed the initial problem, but I can't delay the action with the wait or delay command. I want to "barrel roll" my plane so that it rolls across the screen. Without... |
Forum: Python Sep 18th, 2008 |
| Replies: 1 Views: 424 Currently, all the functions work as expected, but the moving left and right. I want to alter my code to allow me to hold down right and left and for it to continue moving. I know there is a... |
Forum: Python Sep 25th, 2007 |
| Replies: 2 Views: 1,518 global Num1
from Tkinter import *
Num1 = ""
def buttonNPush(n):
global Num1
Num1 = Num1+n
print Num1
def clearScr():
global Num1
Num1 = "" |
Forum: Python May 2nd, 2007 |
| Replies: 2 Views: 929 I'm using Pygame. I wanted to make a new sprite layer, and put the text box on the new layer, and text on the text box, with the text being editable. Preferably the textbox would be in a module, for... |
Forum: Python May 2nd, 2007 |
| Replies: 2 Views: 929 I've successfully made an engine for a point and click game, but I want to know how to put subtitles so you know what the characters are saying. All I know is how to parent text to a background, do I... |
Forum: Python Mar 2nd, 2007 |
| Replies: 7 Views: 3,626 Most of it is from the line-by-line chimp example, but the for loops are my own. So how do I fix the problem? |
Forum: Python Feb 28th, 2007 |
| Replies: 7 Views: 3,626 I can make it place one tile, but how do I alter it to draw all the specified ones? The Pattern is:
W.W
W.W
W.W
W.W
W.W
My code is:
import pygame, os, sys |
Forum: Python Feb 27th, 2007 |
| Replies: 7 Views: 3,626 Here's the error message:
What does this mean? |
Forum: Python Feb 25th, 2007 |
| Replies: 7 Views: 3,626 Here's how I've tried to make it work. How can I fix it?
txtfile = GGG
GGG
GGG
#RPG.py
#Copyright Chris O'Leary, 2007 |
Forum: Python Feb 25th, 2007 |
| Replies: 7 Views: 3,626 How do I do this? In JustBasic I simply read from a text file and coverted the letter it found into an image that it loaded. I want it to load the image I need with this class:
def... |
Forum: Python Feb 15th, 2007 |
| Replies: 3 Views: 2,464 Well, I can't just copy and paste, as the tutorial doesn't have a section where the entire code is printed at once. |
Forum: Python Feb 15th, 2007 |
| Replies: 3 Views: 2,464 I am trying to follow the tutorial on making the whack-a-monkey game, but it keeps giving me this error message:
Here's the code:
import pygame, sys,os
from pygame.locals import * ... |
Forum: Python Feb 12th, 2007 |
| Replies: 1 Views: 823 I've fixed my code based on Ene Uran's instructions, but I can't get it to load seperate stats for each class, it just runs them all into one file when I try. Should I just make a seperate text file... |
Forum: Python Feb 9th, 2007 |
| Replies: 1 Views: 823 def classCreate(self):
self.classChoose = Toplevel(root)
self.classChoose.title('Choose your Class')
self.classChoose.geometry('300x200+300+400')
self.labelChoose... |
Forum: Python Feb 9th, 2007 |
| Replies: 2 Views: 1,689 Please, can I have some assistance? |
Forum: Python Feb 8th, 2007 |
| Replies: 2 Views: 1,689 I have the commands all ok, but even though the syntax is correct, the pic won't display. Here's the zip. |
Forum: Python Feb 5th, 2007 |
| Replies: 9 Views: 1,595 I've turned the whole game into one class, and it works. I'm having trouble getting an image to appear on the fightZone form, it doesn't give error messages, but it is not displaying the image.... |
Forum: Python Feb 5th, 2007 |
| Replies: 9 Views: 1,595 So, what would doing that basically be creating the Character class, and moving all the def statements into the class, all calling each other as needed, with the code being cut/pasted into each def?... |
Forum: Python Jan 30th, 2007 |
| Replies: 9 Views: 1,595 Ok, well it writes correctly, but how do I make it write to the file on the next line down? And then read it?
The file will look like this:
Stats,Morestats,,,,,,,,
ExpGot,ExpToGain
How do I... |
Forum: Python Jan 30th, 2007 |
| Replies: 9 Views: 1,595 Another problem. I can't write to an existing file. I want it to create a file with the characterName, and read the same file again. However it just creates a new file with a blank title, and writes... |
Forum: Python Jan 29th, 2007 |
| Replies: 9 Views: 1,595 |
Forum: Python Jan 29th, 2007 |
| Replies: 9 Views: 1,595 What am I doing wrong, I've done it before!
class Main:
def __init__(self, master):
self.master = master
self.master.title('Role Playing Form V1.0')
... |
Forum: Python Jan 4th, 2007 |
| Replies: 17 Views: 2,878 |
Forum: Python Jan 4th, 2007 |
| Replies: 17 Views: 2,878 Finally, it works perfectly. Thanks for all your help. What do you suggest I do now? I'm hoping to learn how to use images in my forms. |
Forum: Python Dec 20th, 2006 |
| Replies: 17 Views: 2,878 New irritation. Now it says that passPrice is not globally defined, the exact same problem that I've had before. All I altered was the eval() thing. Where is the problem now, it appears to be in the... |
Forum: Python Dec 20th, 2006 |
| Replies: 17 Views: 2,878 Thanks, I'll try the suggestions after University. |
Forum: Python Dec 19th, 2006 |
| Replies: 17 Views: 2,878 It says unscriptable object when it hit's the eval statement. What's wrong now? I copied and pasted your exact code.
Seems to be improving though. |
Forum: Python Dec 18th, 2006 |
| Replies: 17 Views: 2,878 It says syntax error, and highlights the last "self.". Where's the problem? I'm using version 2.4. The code looks excatly like yours vegasseat. |
Forum: Python Dec 14th, 2006 |
| Replies: 17 Views: 2,878 #Bus Ticket.py
"""A program that generates bus tickets based on data input by the user"""
from Tkinter import *
global passPrice
global passType
global start
global end
global price
class... |
Forum: Python Dec 13th, 2006 |
| Replies: 17 Views: 2,878 New problem: I'm trying to replace price with passPrice on the ticket, as I have added a new line to the passinfo file:
0,none,0.00
but it keeps saying "global passPrice not defined." I've... |
Forum: Python Dec 12th, 2006 |
| Replies: 17 Views: 2,878 My program won't read the listbox correctly. The output from the print statements are as follows:
I want the list item "B-line" to = 1, but due to the wierdness of the value, it reads it as... |
Forum: Python Dec 6th, 2006 |
| Replies: 7 Views: 1,872 My listbox is not working properly. Here's the code:
#Bus Ticket.py
"""A program that generates bus tickets based on data input by the user"""
from Tkinter import *
global passType
global... |
Forum: Python Nov 17th, 2006 |
| Replies: 7 Views: 1,872 It's doing what it needs to, but I need more data. Where can i find prices for standard bus tickets, such as a ticket from dronfield to sheffield costs 2.20? All I can find are special tickets, such... |
Forum: Python Nov 10th, 2006 |
| Replies: 7 Views: 1,872 NVM, I fixed the issue. It works now. Just need to do it in a child window! ^_^ |
Forum: Python Nov 10th, 2006 |
| Replies: 7 Views: 1,872 By the way, how would I make it so that if there was no match, then it would continue scanning through, until it found a matching line? |
Forum: Python Nov 9th, 2006 |
| Replies: 7 Views: 1,872 So the Text Adventure is lost. ;-;. I am working on a GUI to take a starting point and a destination input by the user, and scan a file to find a match for both. If it finds a match for Variable A +... |
Forum: Python Oct 13th, 2006 |
| Replies: 4 Views: 1,444 Thanks, jeff, it now does exactly what I want. |