Re: [Tutor] best way to scrape html

2005-02-19 Thread Peter Kim
Thank you, I subclassed SGMLParser.py, borrowing ideas from DiveIntoPython's BaseHTMLProcessor.py. It appears to work: ### class Scrape(SGMLParser): TAGS_TO_SCRAPE = ['p', 'br', 'b', 'i'] def reset(self): self.pieces = [] self.isScraping = 0

Re: [Tutor] Advanced Calculator Program...

2005-02-19 Thread Danny Yoo
> > I want to make caculator program which enables me to enter 2numbers > > and mathsmatics sign and calculates it. I think this is too difficult > > for newbie like me... > > > > Please input data > > > > Number1: > > Mathsmetics Sign: > > Number2: > > > > (Number1) (Sign) (Number2) = (Result) >

[Tutor] Attaching an uploaded file to an email

2005-02-19 Thread Tim Wilson
Hi everyone, I'm working on a little Python CGI project, but I think I'm stuck on some of the MIME magic. I've got a Web form that collects various bit of text and, optionally, a file can be uploaded too. The file could be almost any kind of document from jpeg to PDF. The form data get passed to

Re: [Tutor] Advanced Calculator Program...

2005-02-19 Thread Brian van den Broek
. Sm0kin'_Bull said unto the world upon 2005-02-19 16:15: I want to make caculator program which enables me to enter 2numbers and mathsmatics sign and calculates it. I think this is too difficult for newbie like me... Please input data Number1: Mathsmetics Sign: Number2: (Number1) (Sign) (Number2)

Re: [Tutor] Advanced Calculator Program...

2005-02-19 Thread Gregor Lingl
. Sm0kin'_Bull schrieb: I want to make caculator program which enables me to enter 2numbers and mathsmatics sign and calculates it. I think this is too difficult for newbie like me... Please input data Number1: Mathsmetics Sign: Number2: (Number1) (Sign) (Number2) = (Result) I wrote this but, Erro

Re: [Tutor] Instance into another instance

2005-02-19 Thread Gregor Lingl
Ismael Garrido schrieb: Hello. This is my code: class Node: def __init__(self, tag, value=None, **kwargs): self.tag = tag self.value = value self.kwargs = kwargs self.childs = [] def addChild(self, tag, value=None, **kwargs): node = Node(tag, value, kwargs)

[Tutor] Advanced Calculator Program...

2005-02-19 Thread . Sm0kin'_Bull
I want to make caculator program which enables me to enter 2numbers and mathsmatics sign and calculates it. I think this is too difficult for newbie like me... Please input data Number1: Mathsmetics Sign: Number2: (Number1) (Sign) (Number2) = (Result) I wrote this but, Error occurs print "Please in

[Tutor] Instance into another instance

2005-02-19 Thread Ismael Garrido
Hello. This is my code: class Node: def __init__(self, tag, value=None, **kwargs): self.tag = tag self.value = value self.kwargs = kwargs self.childs = [] def addChild(self, tag, value=None, **kwargs): node = Node(tag, value, kwargs) self.childs.appen

[Tutor] OT: Google Gmail Accounts

2005-02-19 Thread Matt Hauser
If anyone is interested in an invitation to Google GMail, let me know and I will send you a free invitation to join. It works great for organizing mailing lists and with 1000 MB of storage, you don't have to manage your inbox. -- Have you seen the dog lately? Email - [EMAIL PROTECTED] Blog - i

Re: [Tutor] Trying out Tkinter with problems

2005-02-19 Thread Kent Johnson
Adam Cripps wrote: Secondly, when I try to exit the app, the quit button doesn't kill the root, window, but just the widgets. How do I reference the root window and all, instead of just exiting the widgets? Try self.quit() instead of self.destroy()

Re: [Tutor] Trying out Tkinter with problems

2005-02-19 Thread Adam Cripps
On Sat, 19 Feb 2005 10:43:07 +0100, Gregor Lingl <[EMAIL PROTECTED]> wrote: > Hi Adam! > > I'm not a Tkinter expert, so I probably cannot provide > the best solution for your problem. > Nevertheless I tried two corrections, which adress your > problem seeminly successfully > > Adam Cripps schrieb

Re: [Tutor] Trying out Tkinter with problems

2005-02-19 Thread Gregor Lingl
Hi Adam! I'm not a Tkinter expert, so I probably cannot provide the best solution for your problem. Nevertheless I tried two corrections, which adress your problem seeminly successfully Adam Cripps schrieb: I'm trying out Tkinter as one of my first forays into GUI programming. However, I'm having a

[Tutor] Trying out Tkinter with problems

2005-02-19 Thread Adam Cripps
I'm trying out Tkinter as one of my first forays into GUI programming. However, I'm having a couple of problems. My intitial efforts can be seen at: http://www.monkeez.org/code/python/tkinter/min.txt or here [1]. Firstly, I'm trying to grab the contents of Entry widget entry1 with a StringVar and

Re: [Tutor] Active Python

2005-02-19 Thread Brian van den Broek
Bill Mill said unto the world upon 2005-02-18 20:29: On Fri, 18 Feb 2005 17:20:03 -0800 (PST), Terry Carroll <[EMAIL PROTECTED]> wrote: On Thu, 17 Feb 2005, Jeff Shannon wrote: On Thu, 17 Feb 2005 15:54:43 -0800 (PST), Terry Carroll <[EMAIL PROTECTED]> wrote: Interesting -- I prefer the CHM (Win