![]() |
|
#1
|
||||
|
||||
wxPython GUI tutorialI have created a new tutorial for those interested in learning GUI programming using wxPython and Python.
You can find the tutorial on my blog. I have only been using wxPython for a couple of months so I don't know everything, but I know enough to answer some basic questions so feel free to post questions either at my blog or here on GIDForums. __________________
Start Programming with Python-A beginner's guide to programming and the Python language. ------------- Common Sense v2.0-Striving to make the world a little bit smarter. |
||||
|
#2
|
|||
|
|||
Re: wxPython GUI tutorialPlease I need some help here.
I'm creating a money class, and i have no idea why whenever i call the object with specified parts, it gives me a type error. Please have a look. Try running the code below on an IDE, and then call this Money(6,182). Python Code:
Last edited by admin : 22-Nov-2008 at 07:17.
Reason: Please insert your example Python codes between [PY] and [/PY] tags
|
|
#3
|
||||
|
||||
Re: wxPython GUI tutorialSorry, I ran the program and I'm not getting any errors. Can you copy and paste the error message?
__________________
Start Programming with Python-A beginner's guide to programming and the Python language. ------------- Common Sense v2.0-Striving to make the world a little bit smarter. |
|
#4
|
|||
|
|||
Re: wxPython GUI tutorial>>>Money(6,182)
Traceback (most recent call last) : File "<string>",line 1 , in <string> TypeError: this constructor takes no arguments ok if you read through the code, you'd understand that, when you call Money(6,182), i.e Money(self,frans,rappen), the shell should return Fr7.82. 100 rappens make a Franc. |
|
#5
|
||||
|
||||
Re: wxPython GUI tutorialHow are you running this? I mean, is the code you posted all there is? Do you have a
Python Code:
From your error message, it sounds like the class (more specifically, the constructor for the class) can't take the arguments you are passing to it. I know that your __init__ has the arguments in it but it doesn't sound like it's being "seen" by the intepreter. __________________
Start Programming with Python-A beginner's guide to programming and the Python language. ------------- Common Sense v2.0-Striving to make the world a little bit smarter. |
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Looking for a book or tutorial on OpenSSL with php | Blake | MySQL / PHP Forum | 2 | 13-Feb-2008 10:19 |
| Tutorial: How to Make a Web 2.0-Style Logo | PhotoshopTrend | Graphics Forum | 0 | 20-Sep-2007 06:57 |
| Re: Beginning Python Tutorial (Part 10) | crystalattice | Python Forum | 5 | 11-Mar-2007 03:19 |
| Photoshop Tutorial: Make An Inspirational/Mystical Picture | ToddSAFM | Graphics Forum | 9 | 09-Aug-2005 21:32 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The