>
> Followup: I seem to have found sender(), but I get the usual 'you can't
> do this because it was not created in python' error.
>
> So I still don't know how to go about it. Here's a sample class that I
> just typed up:
>
> class testDlg:
> def __init__(self):
> self.dlg=QWid
TED] [mailto:pykde-
> [EMAIL PROTECTED] On Behalf Of Hihn, Jason
> Sent: Tuesday, December 14, 2004 3:20 PM
> To: Phil Thompson; Diez B. Roggisch
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PyKDE] Static member functions
>
>
> I think this is exactly what I want, but I do not know
> To: Diez B. Roggisch
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PyKDE] Static member functions
>
> > Hi,
> >
> > I think I understand your problem as follows: You have a non-
> parametrized
> > signal, lostFocus, that you want to connect to one slot - but then
> som
I heard Hihn, Jason said:
> Ok, my problem is that I want to provide some function that is called
> by the widget that generates the signal.
I'm not sure I fully get your problem, I'm afraid (I'm a bit slow like
that), but:
http://doc.trolltech.com/qq/qq10-signalmapper.html
Would this help?
-
> If that's the case then just use QObject.sender(). The slot must be a
> method of a QObject derived class - but that wouldn't seem to be a problem
> in this case.
Nice. Didn't know that.
Diez
___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.i
> Hi,
>
> I think I understand your problem as follows: You have a non-parametrized
> signal, lostFocus, that you want to connect to one slot - but then somehow
> "magically" there shall be a reference to the object the signal came from
> is
> passed.
If that's the case then just use QObject.sende
Hi,
I think I understand your problem as follows: You have a non-parametrized
signal, lostFocus, that you want to connect to one slot - but then somehow
"magically" there shall be a reference to the object the signal came from is
passed.
May be what could help is somthing like this:
class Mag
I heard Hihn, Jason said:
> How can I do this in python?
It may be I'm not getting your question, but... What's the problem
exactly? You can have global objects (which includes functions) all you
want, really.
Example:
---[ globalstuff.py ]--
da
Behalf Of Sundance
> Sent: Monday, December 13, 2004 7:38 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PyKDE] Static member functions
>
> I heard Hihn, Jason said:
>
> > How can I do this in python?
>
> It may be I'm not getting your question, but... What's the
I need to have a lostfocus event store the object that
created the event. In my previous language, I had a global function that could
do it, because I could bring it in to the class by setting it at run-time. The
‘this’ object, would then be the object that generated the event.
It was then
10 matches
Mail list logo