[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: No signals from Plasma.ComboBox?
From: Thomas Olsen <tanghus () gmail ! com>
Date: 2009-09-30 13:36:06
Message-ID: 200909301536.06283.tanghus () gmail ! com
[Download RAW message or body]
On 30/9-2009 14:43 Marco Martin <notmart@gmail.com> wrote:
> On Wednesday 30 September 2009, Thomas Olsen wrote:
> > I'm trying to connect the activated or textChanged from a Plasma.ComboBox
> > signal to a Python function but nothing seems to happen. This is what
> > I've tried inside my init() function (most is snipped out):
> >
> > self.currency_to = Plasma.ComboBox(self.applet)
> >
> > QObject.connect(self.currency_from,SIGNAL("activated(PyQt_PyObject)"),sel
> > f. do_convert_from)
> >
> > def do_convert_from(currency_from):
> > print "Convert from:" + currency_from
> >
> > But when I select an item in the combo nothing happens; no errors or
> > anything.
> >
> > I've also tried:
> >
> >
> > QObject.connect(self.currency_from,SIGNAL("activated(string)"),self.do_co
> > nv ert_from)
> >
> > but to no avail.
> >
> > If anyone can point me to a Python Plasmoid I can study I would
> > appreciate it.
>
> looking in the combobox code seems the signals are correctly wired up.
> try doing the same thing by accessing the nativeWidget() signals, but it
> should make no difference
>
I tried:
QObject.connect(self.currency_from.nativeWidget(),SIGNAL("activated(PyQt_PyObject)"),self.do_convert_from)
That was what you meant? Anyways it didn't make any difference but thanks for
the suggestion.
--
Best Regards / Med venlig hilsen
Thomas Olsen
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic