Traceback (most recent call last):
File “wxweb.py”, line 42, in
cell = top_cell.Find(wx.html.HTML_COND_ISANCHOR, ‘foobar’)
File “/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/html.py”, line 720, in Find
return _html.HtmlCell_Find(*args, **kwargs)
TypeError: in method ‘HtmlCell_Find’, expected argument 3 of type ‘void const *’
It's a void pointer in C++ because in theory it should be able to use any data type to find a matching cell, depending on what the class of the target cell is using for checking if it is a match. Unfortunately I can't think of a good way to support this in Classic wxPython, although it will be fairly easy in Phoenix. Sorry.
···
On 11/16/12 6:37 AM, taikou wrote:
Hi Robin,
It returns None if param is set to be None. I looked at the source code
and param is compared with m_AnchorName for anchor cell.
What if we parsed the object as wxString instead of void ptr?
On Tuesday, November 20, 2012 1:49:26 PM UTC-5, Robin Dunn wrote:
On 11/16/12 6:37 AM, taikou wrote:
Hi Robin,
It returns None if param is set to be None. I looked at the source code
and param is compared with m_AnchorName for anchor cell.
What if we parsed the object as wxString instead of void ptr?
It’s a void pointer in C++ because in theory it should be able to use
any data type to find a matching cell, depending on what the class of
the target cell is using for checking if it is a match. Unfortunately I
can’t think of a good way to support this in Classic wxPython, although
it will be fairly easy in Phoenix. Sorry.