I have two Classes, I have a method in the first class (using Pygame/livewires moduls)Class1(games.Sprite): function1(self):That is being called by the second classClass2(games.Sprite): function2(self): Class1.function1()When the code runs i get this error"unbound method functi
Hey everyone, im just learning to use Tkinter, and im trynig to write a"Guess my number" game program in widget forum but im having some problems,First heres the code im using,Button(self, text = "Sumit", command = self.number_anwser ).grid(row = 4, column =
Hey,
So i decided to check out this Livewires Modules, but
while running through the tutorial i run into a
problem,
When i was trying to do the graphics stuff,
when i try and use this code
circle(300,195, endpoints = ((280,180),(320,180)))
and i get this error
Traceback (most recent call last):
HA! ignore me, im stupid, XD i knew i should have
waited untill morning =P,
No bug, the number = number was just point to the old
number which was one number lower,
sorry. night =P
Oh i see someone replied -_- sorry lol
___
Tutor maillist - Tutor@py
Hey everyone, i believe i might have found a bug in
python? im not sure, heres a screen shot.
http://img151.imageshack.us/img151/4268/pythonbug8by.jpg
When i type
number + 1
and print it,
It adds one,
But when i use a number = number + 1
right after the value stays the same,
Now i thought that numb
My question seems like itd be farly simple but i cant
seem to get it to work,
My .dat file is a dictionary and i need to be able to
only delete a single word and its definition,
heres what i have so far but it doesn't work.
pickle_file = open("dictionary.dat", "r")
dictionary = cPickle.loa
Ohhh ok i got it to work! but why isn't the change
permanent? it is "writing" to the file isn't it.
--- Liam Clarke <[EMAIL PROTECTED]> wrote:
> Hi Ryan,
>
> You're trying to use your file, dictionary.dat like
> a dictionary data
> structure in Python.
> They don't work the same way.
>
> So.
>
int "\n\tThat term already exists!"
--- Liam Clarke <[EMAIL PROTECTED]> wrote:
> Hi Ryan,
>
> Technically, you don't.
>
> You haul your dictionary out, as you're doing here -
>
> dictionary = cPickle.load(pickle_file)
>
> And when you're finish
Hello, this is like my 3rd question today lol which is
making up for not asking any for months =P, anyways
I have a pickled .dat file named dictionary, maybe
youv guessed this but its a dictionary of the
Alphabet, the program is a translator right now all it
does is translate the Alpabet (its a stu
Hello, Call me a complete n00b but i dont understand
how to get Pyexe to work,
Iv read the site and kinda just confuses me, as you
can prolly tell im still pretty new to programming,
What exactly do i have to do with pyexe to make python
scripts exacutables.
Hello, i have a question about Iron Python, what
exactly does it do? i know its something about .net
but i still dont understand exactly what it does, To
use it do you still write your scripts in the Python
IDLE, or what 0-o,
___
Tutor maillist - Tutor@
Well see, its not a complex language at all,
Here is basicly what it is
a = ba.
b = ga.
somthing like that, my only problem is getting it to
translate muiltpul letters at a time
say the user types a
it prints
ba like it should,
but if the user types in ab
it prints ab
not baga
Well yeah its pretty basic,
Just
*Example*
a = ba
just having a little trouble working out the code,
Still pretty new to python
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Hello, this is just a simple things for a random
person im tryin to help out but it seems i got in
alittle over my head =P,
What i need is a program that translates english in-to
this completly made up language this person has.
The only way i can think of doin this seems...well
like a very bad way
Hi Hans and Adam,
Just wanted to point out: next time, let's try to
figure out why Ryan
had
problems with this, rather than directly give a
working answer.
For example, we can ask things like: what part did
Ryan get stuck on?
Was it unfamiliarity with the things we can do with
slices, or
someth
Ok so what i have to do is make it so when a player
ask for a hint the program display a hint, heres my
loop, not whole script.
guess = raw_input("\nYour guess: ")
guess = guess.lower()
while (guess != correct) and (guess != ""):
print "Sorry, that's not it."
print "If you need a hint ente
Hello, what i need to do is get user input and then
print the string backwards ^^ i have no idea how to do
that,
print "Enter a word and i well tell you how to say it
backwards"
word = raw_input("Your word: ")
print word
all that is simple enough im sure printing it out
backwards is to, just d
Thank you alot ^^ so simple and i knew it, but last
time i tried
it i got an error on the =, most have been making a
stupid mistake
--- "ZIYAD A. M. AL-BATLY" <[EMAIL PROTECTED]> wrote:
> On Sat, 2006-01-14 at 17:52 -0800, ryan luna wrote:
> > Hello, Im kinda stuck
Hello, Im kinda stuck on something in the book Python
Programming.
The "Challenage" is to make a progam that flips a coin
100 times and then tells you the number of heads and
tails.
here is what i have so far,
Code:
import random
coin = 0
heads = 0
tails = 0
heads_tails = random.randrange(2)
wh
19 matches
Mail list logo