I was working with this KDE widget and was having hard time trying to access it with python, I figured out with some help that I was trying to do it right originally and if I patch the 2 files below in the widget to change the name from pass
to say pypass
or just add a copy of this pass
feature under a new name I can use the new name no problem, is this a false positive in the syntax check or just a usage issue? is there a way to work around this issue?
- plugin/DBusService.cpp (line 6:
void DBusService::pass(QString data) {
) - plugin/DBusService.hpp (line 16:
void pass(QString data);
)
These give a syntax error cause of the word pass
#!/bin/python3
from pydbus import SessionBus
diy=SessionBus().get("org.kde.plasma.doityourselfbar","/id_10")
diy.pass('|A|Label|Tooltip|notify-send hello world|')
#!/bin/python3
from dbus import SessionBus
diy=SessionBus().get_object("org.kde.plasma.doityourselfbar","/id_10")
diy.pass('|A|Label|Tooltip|notify-send hello world|')
I did try to set it like this but I just get a Key Error, so much for it behaving like JavaScript...
diy['pass]('string')