I want to be able click on a listbox item and use the text in it to jump to a
tag I have inserted in a HTML control.
I'm doing this for the gnuMed open source medical record project for the
DrugAnnual I'm writing, I'm very slowly getting up to speed in python! and
find the wxPython doc's difficult to interpret because of lack of concrete
examples.
I want to be able click on a listbox item and use the text in it to jump to a tag I have inserted in a HTML control.
I'm doing this for the gnuMed open source medical record project for the DrugAnnual I'm writing, I'm very slowly getting up to speed in python! and find the wxPython doc's difficult to interpret because of lack of concrete examples.
Could a generous soul give me a few pointers.
Try html.LoadPage( '#tag' ) or html.SetPage( '#tag' ) after actual page is loaded.
Loadpage(#tag) froze the program into an endless cycle of error messages that
couldn't load the page. SetPage set the whole html page to the name of the
tag and I lost the previous html.
Any other ideas?
···
On Thursday 20 December 2001 20:20, you wrote:
richard terry wrote:
> I want to be able click on a listbox item and use the text in it to jump
> to a tag I have inserted in a HTML control.
>
> I'm doing this for the gnuMed open source medical record project for the
> DrugAnnual I'm writing, I'm very slowly getting up to speed in python!
> and find the wxPython doc's difficult to interpret because of lack of
> concrete examples.
>
> Could a generous soul give me a few pointers.
Try html.LoadPage( '#tag' ) or html.SetPage( '#tag' ) after actual page
is loaded.
What happened in my code was that I read the name of the string for the row
the listcontrol had been clicked on and passed this to the LoadPage and this
generated a 'HTML anchor does not exist ' or something similar
and then the list box event triggered again evey time I moved the mouse to
click <OK> to the error message.
I had put this code:<B><name='#Composition'>Composition</B> in my HTML
document as the tag to jump to but this may too be wrong.
My problem with not understanding the whole thing. Unfortunately I don't have
a computer programmer trained background. I'm in General Practice in
australia and trying to learn wxPython/python to participate in the gnuMed
medical records project (www.gnumed.net) , so though I've been quite
proficient in Visual Basic for many years, I'm finding wxPython slow going as
I have difficulty understanding the format of the documentation which doesn't
make much sense to my poor brain without a concrete code example to show me
how to use the syntax
···
On Friday 21 December 2001 09:22, you wrote:
Hi,
> Loadpage(#tag) froze the program into an endless cycle of error
> messages that couldn't load the page.
It would be helpful if you could tell us *what* error messages, so
that I can try to fix the bug.
Richard, all you need to do is create a "link clicked" event and send it
to your wxHtml.Window (or call your OnLinkClicked(linkinfo) method
directly. (Just read the documentation on wxHtmlLinkInfo how to set the
anchor / reference in the event parameter))
Haven'y got the docu here right now, if you can't figure out how to post
such an event from the demo, let me know)
Horst
···
On Friday 21 December 2001 08:43, richard terry wrote:
Thanks for the reply
Loadpage(#tag) froze the program into an endless cycle of error messages
that couldn't load the page. SetPage set the whole html page to the name
of the tag and I lost the previous html.