[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-devel] wxEvents question
From: |
Karsten Hilbert |
Subject: |
Re: [Gnumed-devel] wxEvents question |
Date: |
Sun, 2 May 2004 12:50:10 +0200 |
User-agent: |
Mutt/1.3.22.1i |
> Well, now that I found out that there is an addCallback() API
> I used it. Around line 300 of gmPhraseWheel it returns self.data which as as
> far as I can tell is a pointer to the data I want.
> You use wxListBox.GetClientData() to get the pointer.
>
> Well back in gmLabJournal the callback provides me with this very pointer.
In Python the "pointer" IS the very data. Or what would you
expect the result of GetClientData() to be (in Pythonia, that
is) ? Now, the data itself may be a complicated structure, up
to being a fully fledged clinical item value object.
data = GetClientData()
print type(data), data
should help tremendously.
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346