Re: [Tutor] update html pages using python

2009-08-31 Thread Stefan Behnel
Alan Gauld wrote: > "Stefan Behnel" wrote >>> "pedro" wrote Hi, I was wondering if anyone could point me in the right direction as far as the best way to use python to update html. >>> >>> There are a number of modules in the standard library that can help but >>> the best known module

Re: [Tutor] Please delete my mail address from that mail list. Thanks!

2009-08-31 Thread Luke Paireepinart
there are directions on how to remove yourself from the list at the bottom of every message that the list sends out. > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > click. _

Re: [Tutor] Easy Problem

2009-08-31 Thread Luke Paireepinart
>>> txt = "Hi how are you?" >>> " ".join(txt.strip().split()) 'Hi how are you?' On Tue, Sep 1, 2009 at 3:43 AM, Ishan Puri wrote: > Hello, > I have 2 plain text documents that have uneven spacing. I need to make > these single spaced between lines and between words. Basically I need

[Tutor] Easy Problem

2009-08-31 Thread Ishan Puri
Hello, I have 2 plain text documents that have uneven spacing. I need to make these single spaced between lines and between words. Basically I need to get them to be equal character length after I abridge the uneven spacing. In Python there is probably one simple command for this for a text

[Tutor] Please delete my mail address from that mail list. Thanks!

2009-08-31 Thread guan dao
___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Displaying .jpg in Tkinter (Python 3.1)

2009-08-31 Thread Dirk Wangsadirdja
Hi, with Tkinter, you can only display GIF and PGM/PPM images. when you try to create an PhotoImage object from another file format (JPG for example), it will give you an error. Alan Gauld wrote: "Dirk Wangsadirdja" wrote is there anyway to display a .jpg (or other type) images in Tkinter

Re: [Tutor] Displaying .jpg in Tkinter (Python 3.1)

2009-08-31 Thread Alan Gauld
"Dirk Wangsadirdja" wrote is there anyway to display a .jpg (or other type) images in Tkinter with Python 3.1? You can display a limited set of image types, including GIF and JPG in Tkinter without PIL. Several Widgets take an image including the Canvas and Text widgets. I think a label can

[Tutor] Displaying .jpg in Tkinter (Python 3.1)

2009-08-31 Thread Dirk Wangsadirdja
hi, is there anyway to display a .jpg (or other type) images in Tkinter with Python 3.1? From what I read here in the forum, for Python 2.6 I could use the PIL package. But the PIL packages doesnt support Pyton 3.1 yet (from what I read on the PIL website). Are there perhaps other packages