wx.HtmlListBox with wxp tags not possible?
Stani's Python Editor
spe.stani.be at gmail.com
Sat Jun 2 19:07:06 PDT 2007
Hi,
Did anyone succeed to make wx.HtmlListBox work with wxp tags? As an
example, replace the code for MyHtmlListBox(wx.HtmlListBox) with:
import wx.lib.wxpTag
class MyHtmlListBox(wx.HtmlListBox):
def OnGetItem(self, n):
return """<wxp module="wx" class="Button" width="50%">
<param name="label" value="It works!">
<param name="id" value="-1">
</wxp>
"""
If this is not possible, could it be implemented by a
wx.html.HtmlWinTagHandler? How would the above example look like?
Also I noted the existence of wx.SimpleHtmlListBox. Is this an internal
class or can it be used?
Stani
More information about the wxpython-users
mailing list