Forum: Python
Feb 19th, 2008, 8:14 AM
|
|
Replies: 6
Views: 341
Re: Downloading Tkinter and Wxpython
As GameEnder said, tk is bundled with Python, so you should be able to just import it in your scripts and start using it.
Be patient and read the wx download page (GameEnder sent you the link),...
|
Forum: Show Off Your Open Source Projects
Feb 12th, 2008, 8:23 AM
|
|
Replies: 15
Views: 710
|
Forum: Show Off Your Open Source Projects
Feb 11th, 2008, 8:50 AM
|
|
Replies: 0
Views: 273
pyparsing - Python parser library
Pyparsing is a Python module for creating parsers. Here is a parser for "Hello, World!", or any string of the form "<greeting>, <person>!":
greeting = Word(alphas) + "," + Word(alphas) + "!"
print...
|
Forum: Python
Feb 8th, 2008, 9:30 AM
|
|
Replies: 7
Views: 365
|
Forum: Python
Jan 28th, 2008, 5:11 AM
|
|
Replies: 6
Views: 459
Re: Object-Oriented Habits
I absolutely agree that it depends on the program.
In general, I use inheritance for modeling similarities in behavior or expectations of the class user. Strictly speaking, this is not required in...
|
Forum: Python
May 1st, 2007, 5:25 PM
|
|
Replies: 4
Views: 253
|
Forum: Python
Apr 10th, 2007, 4:13 PM
|
|
Replies: 4
Views: 239
|
Forum: Python
Apr 9th, 2007, 2:27 AM
|
|
Replies: 4
Views: 239
|
Forum: Python
Feb 20th, 2007, 9:17 AM
|
|
Replies: 5
Views: 252
:beard: I guess my OO training from...
:beard: I guess my OO training from Smalltalk/C++/Java days is still showing, I instinctively jump to writing a class, especially since Python offers such nice built-in class impersonation features,...
|
Forum: Python
Feb 19th, 2007, 2:57 PM
|
|
Replies: 5
Views: 252
|
Forum: Python
Feb 18th, 2007, 10:43 AM
|
|
Replies: 9
Views: 531
I felt a little disoriented at the beginning,...
I felt a little disoriented at the beginning, maybe you need a clearer intro on what you are about to tutor and to whom. Once you got going, the meat of your tutorial looks very clear and helpful. ...
|
Forum: Python
Jan 31st, 2007, 5:34 AM
|
|
Replies: 18
Views: 515
Just a couple more examples:
fica =...
Just a couple more examples:
fica = Percent(7)
fedtax = Percent(15)
medicare = Percent(3)
deductions = fica + fedtax + medicare
gross = 100000
net = gross - deductions
print net # answer: 75000
|
Forum: Python
Jan 30th, 2007, 5:55 PM
|
|
Replies: 18
Views: 515
|
Forum: Python
Jan 30th, 2007, 9:52 AM
|
|
Replies: 18
Views: 515
A Percent class for doing percentage arithmetic
Python's ability to emulate numeric types makes it easy to "extend" Python with some interesting behavior. Here's a Percent class that allows you to write code like: saleprice = origprice -...
|
Forum: Python
Jun 20th, 2006, 11:28 PM
|
|
Replies: 12
Views: 315
Sorry you don't find the pyparsing docs to be...
Sorry you don't find the pyparsing docs to be more helpful. I've put more effort into code examples (I think there are about 20 examples now), based on experience that programmers generally prefer...
|