wxptag and accessing controls

Greetings,

I'm currently using wxPython 2.8.4 and trying to use
wx.html.htmlwindow to create a nice looking GUI. Unfortunately, I'm
having problem accessing the controls that I create with wxptag.

The list archives show that this was previously discussed by Joel
Lucsy and Robin Dunn back in 1999, but I'm still not sure how to
access the controls from the parent window. Were the discussed changes
ever included in the main distribution?

···

--
Regards,
Jackson Yee
540-818-4079
jackson.yee@gmail.com
www.jacksoncomputing.com

Jackson Yee wrote:

Greetings,

I'm currently using wxPython 2.8.4 and trying to use
wx.html.htmlwindow to create a nice looking GUI. Unfortunately, I'm
having problem accessing the controls that I create with wxptag.

The list archives show that this was previously discussed by Joel
Lucsy and Robin Dunn back in 1999, but I'm still not sure how to
access the controls from the parent window. Were the discussed changes
ever included in the main distribution?

What were the discussed changes?

If you assigned IDs to your embedded widgets then you can use myHtmlWin.FindWindowById(theID), or if you give them names then you can use myHtmlWin.FindWindowByName(theName)

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin,

The changes I found were on this message:

http://lists.wxwidgets.org/archive/wxPython-users/msg04616.html

From Joel's ideas, I've patched together a version available at

http://www.jacksoncomputing.com/wxptag.txt

Let me know what you think. I found out how to use FindWindow, but
actually having the python instances of the widgets themselves gave me
a bit more flexibility to work with, especially with the more
complicated controls like listctrl or treectrl.

···

--
Regards,
Jackson Yee
540-818-4079
jackson.yee@gmail.com
www.jacksoncomputing.com

On 5/30/07, Robin Dunn <robin@alldunn.com> wrote:

What were the discussed changes?

If you assigned IDs to your embedded widgets then you can use
myHtmlWin.FindWindowById(theID), or if you give them names then you can
use myHtmlWin.FindWindowByName(theName)

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

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

Jackson Yee wrote:

Robin,

The changes I found were on this message:

http://lists.wxwidgets.org/archive/wxPython-users/msg04616.html

From Joel's ideas, I've patched together a version available at

http://www.jacksoncomputing.com/wxptag.txt

Let me know what you think. I found out how to use FindWindow, but
actually having the python instances of the widgets themselves gave me
a bit more flexibility to work with, especially with the more
complicated controls like listctrl or treectrl.

FindWindowByName or ById should already be returning an object of the right type. If not then it's a bug and I'd like to see an example of it.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!