[Tutor] Location of modules in Mac OS X

2007-10-01 Thread Roy Chen
Hello all, I'm using MacPython 2.5 on OS X 10.4. I was just wondering if all the Python modules are contained in this directory: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ Also, I've installed the Python Image Library (PIL), and it seems to be installed in this folder:

[Tutor] Question about default values for arguments

2007-10-11 Thread Roy Chen
Hi everyone, been looking at the following functions, but can't figure out how they work. def f(a, L=[]): L.append(a) return L def g(a, L=None): if L == None: L = [] L.append(a) return L print f(1) print f(2) print f(3) print g(1) print g

[Tutor] Obtaining image date of creation

2007-11-14 Thread Roy Chen
, Roy Chen ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] PythonCard error checking

2007-12-24 Thread Roy Chen
Hello everyone, I've just started trying PythonCard to build a simple GUI for a little application I'm writing. Just wondering if anyone knows the "proper" way to do some simple error checking: for example, I have a textField, and I wish to check that only integers within a certain range are enter

[Tutor] Choice of GUI builders

2008-01-02 Thread Roy Chen
ly) GUI builder. I'm leaning towards wxPython so far (it's had a recent release just a month or so ago), but if anyone has any suggestions, that'd be great. Thanks in advance, Roy Chen ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Choice of GUI builders

2008-01-02 Thread Roy Chen
ell (a big surprise for me). And the fact this > approach is cross platform, for "platform" being defined as Windows, > Linux, Mac, Firefox, IE6, IE7 and Opera, makes this a great choice for > a easy UI toolkit. > > --Michael > > On Jan 2, 2008 9:08 AM, Roy Che

Re: [Tutor] Choice of GUI builders

2008-01-02 Thread Roy Chen
Thanks for all the help, Dabo looks interesting, but perhaps a bit overkill right now for what I have in mind. Certainly something useful to learn in the long run, though. I suppose with any GUI toolkit/builder, you're going to have learn some part of the API anyway. I might just see how I go with