No signals from Plasma.ComboBox?
notmart at gmail.com
Wed Sep 30 14:43:16 CEST 2009
On Wednesday 30 September 2009, Thomas Olsen wrote:
> Firstly, it has been *AGES* since I've coded Qt/KDE and this is my first
> endeavor into Plasma so I'll probably be sending a lot of newbie questions,
> but I'll promise that I'll do my best to google for the answers first.
> 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)
> 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
> I've also tried:
> but to no avail.
> If anyone can point me to a Python Plasmoid I can study I would appreciate
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
More information about the Plasma-devel