Re: [Tutor] Filesystem Usage

2006-09-21 Thread wesley chun
> How can I go about getting info similar to that which the UNIX df > command provides - of filesystem usage and inode usage? I could just > shell out and run a df command, but I would rather use python > bindings. this sounds like it will require some work to implement 'df' in Python, *and* it w

Re: [Tutor] Tkinter GUI Grid Layout Manager

2006-09-21 Thread Alan Gauld
My top tip for doing anything requiring precise layout control in Tkinter is use lots of Frames. Use grids pr packer inside the frames as appropriate, but control the layout of the controls inside a frame, then control the layout pof the frames inside the main window and life generally gets easier

Re: [Tutor] module file copy ?

2006-09-21 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Dave S > Sent: Thursday, September 21, 2006 2:41 PM > To: Python Tutor > Subject: [Tutor] module file copy ? > > OK have I missed it - but which module is file copy in ? I > looked all around > OS

[Tutor] module file copy ?

2006-09-21 Thread Dave S
OK have I missed it - but which module is file copy in ? I looked all around OS but no luck - I can find rename(src, dst) but that's about it. Cheers Dave ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] python intall error

2006-09-21 Thread paulino1
When trying to install python in windows I get this error message: "The installer encoutered an unexpected error, installing this package. This may indicate a problem with this package. The error code is 2356" I've found this error both with python-2.4.3.msi and python-2.5.msi in diferent machines

Re: [Tutor] Python CGI Script

2006-09-21 Thread Python
On Thu, 2006-09-21 at 08:38 -0600, Mike Hansen wrote: > > > -Original Message- > > From: Alan Gauld [mailto:[EMAIL PROTECTED] > > Sent: Thursday, September 21, 2006 2:51 AM > > To: Mike Hansen; tutor@python.org > > Subject: Re: [Tutor] Python CGI Script > > > > >sql_statemen

Re: [Tutor] Python CGI Script

2006-09-21 Thread Mike Hansen
> -Original Message- > From: Alan Gauld [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 21, 2006 2:51 AM > To: Mike Hansen; tutor@python.org > Subject: Re: [Tutor] Python CGI Script > > >sql_statement = "INSERT INTO images (image) VALUES (%s)" > >cur.execu

Re: [Tutor] Tkinter GUI Grid Layout Manager

2006-09-21 Thread Michael Lange
On Wed, 20 Sep 2006 21:21:25 -0700 (PDT) Johnston Jiaa <[EMAIL PROTECTED]> wrote: > I am trying to get 3 buttons, equally separated along the top of the window. > How do I get them to all be the same size and how do I make them so that they > are equidistant to each other? > > Along with those

Re: [Tutor] Tkinter GUI Grid Layout Manager

2006-09-21 Thread Kent Johnson
Johnston Jiaa wrote: > I am trying to get 3 buttons, equally separated along the top of the > window. How do I get them to all be the same size and how do I make > them so that they are equidistant to each other? > > Along with those three buttons, I am trying to get a text box, near the > mid

[Tutor] Filesystem Usage

2006-09-21 Thread Steve Nelson
Hello chums, How can I go about getting info similar to that which the UNIX df command provides - of filesystem usage and inode usage? I could just shell out and run a df command, but I would rather use python bindings. What's the recommendation? S. _

[Tutor] Tkinter GUI Grid Layout Manager

2006-09-21 Thread Johnston Jiaa
I am trying to get 3 buttons, equally separated along the top of the window.  How do I get them to all be the same size and how do I make them so that they are equidistant to each other?Along with those three buttons, I am trying to get a text box, near the middle of the window.  Every time I attem

Re: [Tutor] Python CGI Script

2006-09-21 Thread Alan Gauld
>sql_statement = "INSERT INTO images (image) VALUES (%s)" >cur.execute(sql_statement, (data_obj, )) > >Is it just moving the variable substitution to the execute statement >as > a tuple, so it will perform the proper quoting? Nope, the syntax changes slightly, and I believ

Re: [Tutor] Overloading the assignment operator in a class

2006-09-21 Thread Alan Gauld
>> mydie = Die(mydie.n,5) >> >> And I believe you can do that by implementing the __coerce__ >> method. - but I've never tried it... > > If you can do that with __coerce__, I'm not clever enough to figure > out > how. IIRC, Python only calls __coerce__ if you're using arithmetic > operators on dif

Re: [Tutor] [Plone-Users] Changing possible Smart Folder Criteria?

2006-09-21 Thread Liam Clarke
Ah, Unfortunately, doesn't cover events that started yesterday, but are running for the next week... On 9/21/06, Dan Busarow <[EMAIL PROTECTED]> wrote: > > On Sep 20, 2006, at 6:38 PM, [EMAIL PROTECTED] wrote: > > > Hi all, > > > > I have a Smart Folder which is grabbing events based on date, an