wxp tag

I’m fairly new to wxPython.

I need to parse an html file and have it displayed in a
window. How do I do this??

Here is the html file (“C:\Documents and Settings\ Files
userparms.htm”)

Project Header

Subsystem

Use Correct Format

for Subsystem selection.

Select “Validate” if

validation is needed for

given Area/Owner/Zone

numbers.


<wxp MODULE=“wx” CLASS=“CheckBox”


Thanks!

– Vince

When you say "parse", can you be a little more
specific? What information do you need to extract
from the file? Do you know what fields you need to
display in advance, or will it depend on the contents
of the file?

Gre7g

···

--- Vincent Cano <VCANO@midwestiso.org> wrote:

I'm fairly new to wxPython.

I need to parse an html file and have it displayed
in a window. How do I
do this??

____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search
that gives answers, not web links.
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

Doh! I'm such a dolt. I thought you meant that you
wanted to extract some information from the HTML file
and then display that extracted information in the
window.

To display HTML in a wxWindow, wxHtmlWindow class.
There's a good example of this in the demo under "More
Windows/Controls".

Gre7g

···

--- Vincent Cano <VCANO@midwestiso.org> wrote:

I'm fairly new to wxPython.

I need to parse an html file and have it displayed
in a window. How do I
do this??

____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search
that gives answers, not web links.
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

I thought it would be easier to show by making a quick webpage.

http://partynd.com/python/

The html file is on there as well (as a link)

Vince

···

-----Original Message-----
From: Gre7g Luterman [mailto:hafeliel@yahoo.com]
Sent: Wednesday, June 20, 2007 12:05 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] wxp tag

When you say "parse", can you be a little more
specific? What information do you need to extract
from the file? Do you know what fields you need to
display in advance, or will it depend on the contents
of the file?

Gre7g

--- Vincent Cano <VCANO@midwestiso.org> wrote:

I'm fairly new to wxPython.

I need to parse an html file and have it displayed
in a window. How do I
do this??

________________________________________________________________________
____________
Yahoo! oneSearch: Finally, mobile search
that gives answers, not web links.
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

Okay, so you want to remove the <wxp ...>, the </wxp>,
and everything in between before you render the HTML.
No problem. Just use the regular expression module to
search for the text:

import re
WXPSearch=re.compile("<wxp .*</wxp>", re.S)
HTML=WXPSearch.sub("", HTML)

Gre7g

···

--- Vincent Cano <VCANO@midwestiso.org> wrote:

I thought it would be easier to show by making a
quick webpage.

http://partynd.com/python/

The html file is on there as well (as a link)

____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/

If you ever get into doing lots of HTML parsing, c.l.py usually recommends
using Beautiful Soup: Beautiful Soup: We called him Tortoise because he taught us.

Mike

···

-----Original Message-----
From: Gre7g Luterman [mailto:hafeliel@yahoo.com]
Sent: Wednesday, June 20, 2007 3:34 PM
To: wxPython-users@lists.wxwidgets.org
Subject: RE: [wxPython-users] wxp tag

--- Vincent Cano <VCANO@midwestiso.org> wrote:

> I thought it would be easier to show by making a quick webpage.
>
> http://partynd.com/python/
>
> The html file is on there as well (as a link)

Okay, so you want to remove the <wxp ...>, the </wxp>, and
everything in between before you render the HTML.
No problem. Just use the regular expression module to search
for the text:

import re
WXPSearch=re.compile("<wxp .*</wxp>", re.S)
HTML=WXPSearch.sub("", HTML)

Gre7g

______________________________________________________________
______________________
Looking for a deal? Find great prices on flights and hotels
with Yahoo! FareChase.
http://farechase.yahoo.com/