Actually - deciding to put this hacking on the back burner for the moment
and doing an end-run around the wxHelpProvider system to get the behaviour I
need
I might get back to this at some stage..
S.
···
-----Original Message-----
From: Sean Slattery [mailto:Sean.Slattery@aprsmartlogik.com]
Sent: Tuesday, May 13, 2003 12:06 PM
To: 'wxPython-users@lists.wxwindows.org'
Subject: RE: [wxPython-users] Making wxSimpleHelpProvider more useful[We can take this off the list if it's boring everyone else...]
> > This solves a lot of my problems. Making ShowHelp overrides
> work would make
> > me highly happy,
> >
> >>behaviour. My current problem is that wxHelpProvider doesn't
> >>inherit from
> >>wxObject, which causes the following macro:
> >>
> >>IMPLEMENT_DYNAMIC_CLASS(wxPySimpleHelpProvider,
> wxSimpleHelpProvider);
> >>
>
> Since it is not a wxObject then you don't need the dynamic
> class stuff,
> it is for the wxRTTI. wxPython only needs the wxRTTI in
> order to create
> instances of the right type for function return values, so it
> won't hurt
> anything in this case.Are you sure? Thing is, I now have ShowHelp overridden, so that if I
subclass
wxSimpleHelpProvider in Python, and call ShowHelp on the same
object, I get
the
subclass definition of ShowHelp, BUT when I pass it to
wxHelpProvider_Set
and
then fetch it back with wxHelpProvider_Get, the overload is
gone. It feels
like there has to be some dynamic class stuff going on so
that the C++ code
knows to call the Python definition.I'm going to nose into similar cases (thinking of wxTreeItemData being
passed
to wxTreeCtrl) to see if I can spot how this should be done.> So if you want to continue to try and get it working
(sounds like you
> are close) then I'll take a patch. If you can also provide
> some use of
> it in the demo I'll appreciate it.Will do my best,
S.
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwindows.org