wx.html.HtmlWindow and wxpTag, how to fetch all user input at once ?

Stef Mientki s.mientki at ru.nl
Wed Jan 2 13:02:21 PST 2008


hello,

I've a html page with embedded wx-controls,
through wxp tags.
I show these pages in wx.html.HtmlWindow,
which works very nice.

On these pages there are several controls, like a few wx.TextCtrl.
Now what ever the user puts into these controls,
I want to grab that in one time,
preferable without extra user interaction, so for instance when the user 
leaves the page.

Now I saw a previous question in the list related to my question,
about retrieving a checkbox.

<wxp module="wx" class="CheckBox">
    <param name="label" value=I> 
    <param name="id" value=5100>
</wxp>

checkbox=myhtmlwin.FindWindowById(5100)

But that's not  a very elegant way,
certainly if you don't know the content of the page at forehand ;-)

So the questions are:
- is there a way to find all wxp controls on a page (other than parsing 
the source string ;-) ?
- if these controls can be found, can I get to know there type ?
- I can detect leaving the page from some button presses,
but is there a way to get notified when the page is left ?

thanks,
Stef Mientki




More information about the wxpython-users mailing list