Re: [Tutor] (no subject)

2010-04-27 Thread Marco Rompré
Oups my posting was too big!!! On Tue, Apr 27, 2010 at 11:04 PM, Marco Rompré wrote: > Why is none of my items button works In this, I have two files and in > my second file I imported all the function of the first one > > Here is my codes and my error code for the two files pl

[Tutor] How can I display my float as a string???

2010-04-27 Thread Marco Rompré
Here is my code, I need to display my float value as a string. item.set_prix str(float(prix)) Thank You -- Marc-O. Rompré ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tut

Re: [Tutor] Hi everybody stuck on some error need help please thank you!!

2010-04-23 Thread Marco Rompré
rano wrote: > On Sat, 24 Apr 2010 01:07:11 pm Marco Rompré wrote: > > > Here's my code: > [...] > > class Modele: > > """ > > La definition d'un modele avec les magasins. > > """ > > def __init__(self, n

[Tutor] Hi everybody stuck on some error need help please thank you!!

2010-04-23 Thread Marco Rompré
Hi everybody, I would appreciate your help on this one In this program I want to create 2 concepts each with 2 or 3 properties My first concept is magasin(shop in french) and my shop has 3 attributes: nom(name in french), items and ville (city in french) the second one is items and its 2 attributes

Re: [Tutor] Would you please help me understand my error

2010-04-23 Thread Marco Rompré
Bien, >for starters please get rid of all those set_ methods. They are > doing nothing, it's not pythonic. Just assign the value straight away. > e.g.: from """ item01.set_prix("999.99") """ to """ item01.prix = "999.99" """ > Our teacher showed us this method and in our exercise we had

[Tutor] Would you please help me understand my error

2010-04-23 Thread Marco Rompré
Its supposed to be a object magasin (shop in french) with some golf items in it class Magasin: """ Le concept magasin pour la gestion d'inventaire des items de golf. """ def __init__(self, nom ="", items =[] ): self.nom = nom self.items = items def set_nom(se

[Tutor] Need some info

2010-04-20 Thread Marco Rompré
Hi! in my programming course at university, I need to create a python model with 2 concepts in a one towards many relation each of them having 2-3 properties. Also, I need to create an application with screens to add, modify, and delete the data of the model. Can someone know where I can find t

Re: [Tutor] Simple bank account oriented object

2010-04-05 Thread Marco Rompré
ot(0) compte1.retrait(1200) compte1.calculInteret(10) compte1.affiche_solde() compte2 = CompteEtudiant('Étudiant',800,1000) compte2.retrait(1100) compte2.affiche_solde() On Wed, Mar 31, 2010 at 4:39 PM, Lie Ryan wrote: On 04/01/2010 12:35 AM, Marco R

[Tutor] Simple bank account oriented object

2010-03-30 Thread Marco Rompré
Hi im doin a programmin course at university and in one on my exercise i have to do that I had to define a class CompteBancaire(CompteBancaire is bankaccount in french), that would allow me to create objects Compte1, Compte2,etc. The following methods need to be defined - depot(somme)

[Tutor] Hi there!

2010-03-16 Thread Marco Rompré
Hi! Does anyone of you know where to find all the solutions of Gerard Swinnen Python tutorial exercises In the tutorial we just have the solutions to half of the exercises. Thank you -- Marc-O. Rompré ___ Tutor maillist - Tutor@python.org To un

[Tutor] Problem with little program

2010-03-13 Thread Marco Rompré
Hello I have a little problem, I am trying to define a function ligneCar(n, ca) that would print n times the caracters ca. For now I have the user entering a short sentence corresponding to ca. Here is my code: def ligneCar(n,ca): c=0 while c___

Re: [Tutor] Problem with turtle

2010-03-12 Thread Marco Rompré
The thing is that the teacher wanted us to use a while loop like in the notes but even in the notes I copied the code and it was not working either. Now, I'm more on the right track, I am able to draw the forms and the counter is almost working, the reason I say that is because turtle is doin what

Re: [Tutor] Problem with turtle

2010-03-11 Thread Marco Rompré
is wrong - it will be outside >> of the while loop and so n will never increment and the loop will never end. >> >> Instead of a while loop I would suggest a for loop: >> >> for n in range(10: >> >> >> HTH, >> >> Vern >> &g

Re: [Tutor] Problem with turtle

2010-03-11 Thread Marco Rompré
over it and the last problem was that it was never stopping and i had to rstart the shell to make it stop. I hope I am more precis with my explanations. Thanks for helping me learn On Thu, Mar 11, 2010 at 1:26 PM, Alan Gauld wrote: > > "Marco Rompré" wrote > > > Hi! I am

[Tutor] Problem with turtle

2010-03-11 Thread Marco Rompré
Hi! I am relatively new to python and turtle and I really need your help. Here what I wanted turtle to do: I created a function named carré which would draw a square with 3 different parameters (color, size, angle). I did the same for a function named

[Tutor] Macbook Pro+python programming

2010-03-09 Thread Marco Rompré
Does anybody know any good python emulator that would work perfectly with Mac OSX Leopard? Because I just got a brand new Mac (the one on apple store) and it seems that the build in Python 2.6.1 from darwin is garbage I'm running a 2,88 ghz dual core and each time I open terminal, then type idle a

[Tutor] Using Python with a Mac

2010-02-21 Thread Marco Rompré
Hi everyone, I would like to know how to use python with a mac. For now, I go to spotlight, open terminal then type IDLE and a window pops up but its like the window that opens when you run your programs already saved and I'm not able to open another window to write a script from scratch. Could s