Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~50.4K People Reached
Favorite Tags
Member Avatar for vegaseat

Ever wanted to make a text adventure? It's quite simple: [code] #First you define the start of the game: def game_start(): print '''Your story opening here''' room1() #takes you to the function room 1, when you have #defined it. def room1(): """This code will print a description of your room1, …

Member Avatar for vegaseat
23
34K
Member Avatar for chris99

I am trying to create a window with a custom background after playing with the different styles, to practice declarations and destroying objects for future reference. Whenever I try to compile the code I get the following errors: "undefined reference to CreateSolidBrush@4" and "undefined reference to DestroyObject@4". Where in my …

Member Avatar for chris99
0
240
Member Avatar for chris99
Member Avatar for farmwife
0
6K
Member Avatar for chris99

I'm trying to make a calculator with Tkinter but I'm having trouble using a for loop to make the number buttons. I'm using a for loop as they are nearly identical. Here's the loop: class Calculation: def __init__(self,master): i=1 rowi=1 columni=0 self.num = "" self.button = [] frame=Frame(master) frame.grid() self.returnScreen …

Member Avatar for woooee
0
128
Member Avatar for chris99

I know the code, but not the tags to enclose it within. Current HTML: <!DOCTYPE html> <html> <head> <script language="JavaScript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('#Reindeer').sortable(); }); </script> <script> if (window.XMLHttpRequest) { xmlHttp=new XMLHttpRequest(); } else { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlHttp.open("GET","xmlExample.xml",false); xmlHttp.send(); xmlDoc=xmlHttp.responseXML; function displayComments() { content=(x[i].getElementsByTagName("content")[0].childNodes[0].nodeValue); txt="Comment: …

Member Avatar for chris99
0
235
Member Avatar for chris99

I'm having trouble getting my jQuery to work. The .js file is in the same folder as the homepage, and I'm trying to accordion a list using the effects plugin. Here's the jQuery code: $(document).ready(function(){ $('#accordion').accordion({collapsible:true, active: false}) }); Here's the homePage code: <!DOCTYPE html> <html> <head> <title>Santa's Workshop</title> <script …

Member Avatar for EvolutionFallen
0
160
Member Avatar for chris99

Just wondering how the game would be put together, maybe even a step by step tutorial. I could use this to practice with the commands used without Tkinter or Pygame. This could be a good learning experience.

Member Avatar for Jacklittle01
0
1K
Member Avatar for chris99

The site is gameperspective.freehosting.com. For some reason the button link (Visual) isn't aligning flush with the div margin, it is sliding to the bottom right. Here is the CSS, and the HTML, what is going wrong? Relevant HTML: [CODE]<html> <head> <title>My new blog/ information website! </title> <link rel="stylesheet" type="text/css" href="default_game_site.css"/> …

Member Avatar for gcarvalho
0
92
Member Avatar for chris99

I'm having trouble with an application in Tkinter. The program displays a button that has a picture on it and that button takes you to a website about that picture, but that is not where the issue lies. There is another module that I have found on an internet tutorial …

Member Avatar for chris99
0
2K
Member Avatar for chris99

I'm using windows 7, hoping to use Tkinter to open an internet window when a button is clicked that goes to a specific page in google chrome. Is this possible? [CODE]class App: def __init__(self, master): frame = Frame(master) frame.pack() self.button = Button(frame, text="Rejuvenation", command=self.info) self.button.pack() def info(self): pass #Will go …

Member Avatar for inuasha
0
264
Member Avatar for chris99

[CODE]global Num1 from Tkinter import * Num1 = "" def buttonNPush(n): global Num1 Num1 = Num1+n print Num1 def clearScr(): global Num1 Num1 = "" root = Tk() textbox = Entry(root) textbox.pack(side=TOP) #Create Frame with buttons numbered 0-9 frameButtons = Frame(root) frameButtons.pack(side=LEFT) button1 = Button(frameButtons, text="1", command=buttonNPush("1")) button1.grid(row=0, column=0) button2 …

Member Avatar for vegaseat
0
207
Member Avatar for Catweazle

Concerning 'Modding' the disney online game Toontown Online has the right idea. You can select names from 4 part listing processes eg: Professor Snappy JingleHarper but if you want to type a name, it goes through a submission process that rejects the name if inappropriate. They should do that with …

Member Avatar for chris99
0
189
Member Avatar for kc0arf

Let me tell you about my phone. It's sleek, stylish. About 10 cms tall, black and grey. All the basic buttons. Simple features. Just 2 games, snake and a shooter that I can't get the hang of. Black and white. It follows the rule os K.I.S.S: Keep It Simple, Stupid. …

Member Avatar for chris99
0
198
Member Avatar for chris99

I installed successfully, it is in python26/Lib/site_packages but it won't import. Here's the error message: [CODE]>>> import pygame Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import pygame File "C:\Python26\lib\site-packages\pygame\__init__.py", line 93, in <module> from pygame.base import * ImportError: DLL load failed: The specified module could not …

Member Avatar for jlm699
0
699
Member Avatar for chris99

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 statement with the right syntax, I just dont know how to …

Member Avatar for chris99
0
124
Member Avatar for chris99

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 just need to make an invisible layer with a …

Member Avatar for chris99
0
143
Member Avatar for chris99

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: [CODE]def load_image(name, colorkey=None): """When this statement is accessed, coupled with the name …

Member Avatar for vegaseat
0
814
Member Avatar for chris99

I am trying to follow the tutorial on making the whack-a-monkey game, but it keeps giving me this error message: [QUOTE] Traceback (most recent call last): File "C:/Documents and Settings/Christopher/My Documents/pygame/examples/examples/monkeystuff.py", line 128, in -toplevel- chimp = Chimp() File "C:/Documents and Settings/Christopher/My Documents/pygame/examples/examples/monkeystuff.py", line 66, in __init__ screen = pygame.display.get_suface() …

Member Avatar for bumsfeld
0
277
Member Avatar for chris99

[CODE] def classCreate(self): self.classChoose = Toplevel(root) self.classChoose.title('Choose your Class') self.classChoose.geometry('300x200+300+400') self.labelChoose = Label(self.classChoose, text="Select the class you wish to be") self.labelChoose.grid(row=0) self.listClass = Listbox(self.classChoose, height=4) self.listClass.grid(row=1) self.listClass.insert(END,"Warrior") self.listClass.insert(END,"Brute") self.confirm = Button(self.classChoose, text="Confirm", command=self.confirm) self.confirm.grid(row=2) def confirm(self): fileClass = open('ClassData.txt','r') for line in fileClass: classInfo=line.split(',') print "Name is:", self.Name print "This …

Member Avatar for chris99
0
96
Member Avatar for chris99

I have the commands all ok, but even though the syntax is correct, the pic won't display. Here's the zip.

Member Avatar for Ene Uran
0
139
Member Avatar for chris99

What am I doing wrong, I've done it before! [CODE]class Main: def __init__(self, master): self.master = master self.master.title('Role Playing Form V1.0') self.master.geometry('300x250+350+450') self.master.mainloop() self.cmdCreate = Button(self.master, text='Create Character', command=self.create) self.cmdCreate.grid(row=0) def create(self): pass root = Tk() main=Main(root)[/CODE] the button doesn't appear!

Member Avatar for bumsfeld
0
136
Member Avatar for chris99

My program won't read the listbox correctly. The output from the print statements are as follows: [QUOTE]Dronfield Sheffield 2.20 ('1',)[/QUOTE] I want the list item "B-line" to = 1, but due to the wierdness of the value, it reads it as ('1',) It is meant to read from the passinfo.txt …

Member Avatar for chris99
0
1K
Member Avatar for chris99

Just trying to make pickle work, but when I load the file the dictiionary is still empty. It's an addressbook, with the dictionary keys being names, and values being numbers {N:NUM} I've programmed pickle to save it to a file with a user specified name, and it does so. I …

Member Avatar for vegaseat
0
129
Member Avatar for chris99

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 + B then it will assign variable …

Member Avatar for Ene Uran
0
137
Member Avatar for chris99

How would I manipulate an entry widget so that it hides the entered characters behind asterisks? like this: Typed: PassWord Displayed as typing occurs: ******** I'm trying to make a dialog box module, for use in some future programs. I want the user to be the only one to know …

Member Avatar for Ene Uran
0
128
Member Avatar for chris99

The attached program uses buttons to take you to a set of links. The links that the three buttons point to are here, gamefaqs and toontown. You can customise by altering the links and button names within the code, this is just practice. What do you think?

Member Avatar for chris99
0
127
Member Avatar for chris99

The dictionary currently has a few definitions in it, but it keeps only returning the definition for "noob". Anything that's entered returns that index. Why? Here's the code: [code]#1337 to Human dictionary: leet={"1337":"l-EET/nReally Awesome","noob":"(n00b) nOOb/nPerson who can't accept that s/he's wrong", "-xxors":"Suffix, pron: zors.\nUsed to accent an important verb, e.g. …

Member Avatar for ghostdog74
0
227
Member Avatar for chris99

Unique random variables. I've tried modifying the code in varying ways, but nothing is working. The program won't add new numbers to replace the ones that were duplicates. [CODE]import random b=0 numbers=[] print "show 6 random unique integers from 1 to 50: " while b < 6: for k in …

Member Avatar for vegaseat
0
127
Member Avatar for chris99

[quote]Print a 9x9 diamond shaped pattern.......using loops[/quote] [code]#written by Chris O'Leary: #Filename: star.py star=1 space=5 def star_decrease(star,space): while star > 0: print " "*space + "*"*star space = space+1 star = star-2 def star_increase(star,space): while star < 9: print " "*space + "*"*star space = space-1 star = star+2 if …

Member Avatar for chris99
0
129
Member Avatar for chris99

This program print the verse of "charlie was a pidgeon" 10 times, and finishes off with a cute little surprise. THE DEATH OF CHARLIE SHALL OCCUR! [code] #by Christopher O'Leary #The death of Charlie! def print_charlieVerse(): print "Charlie was a pidgeon, a pidgeon, a pidgeon." print "Charlie was a pidgeon, …

Member Avatar for Ene Uran
0
113