[Kde-bindings] [bindings] [Bug 325667] New: RuntimeError when calling <containment>.toolBoxItem() method from a python plasmoid
Benoît Monin
benoit.monin at gmx.fr
Sat Oct 5 13:20:30 UTC 2013
https://bugs.kde.org/show_bug.cgi?id=325667
Bug ID: 325667
Summary: RuntimeError when calling <containment>.toolBoxItem()
method from a python plasmoid
Classification: Unclassified
Product: bindings
Version: 4.11.1
Platform: openSUSE RPMs
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
Assignee: kde-bindings at kde.org
Reporter: benoit.monin at gmx.fr
Calling the methods toolBox or toolBoxItem of a plasma.containment object in a
python plasmoid cause a runtime error with the following message :
RuntimeError: no access to protected functions or signals for objects not
created from Python
This was previously working before upgrading to python-sip 4.15.1, and is still
crashing after updating to 4.15.2. This is tested on a machine running openSUSE
tumbleweed, on which python-sip was updated around 18-09-2013.
Reproducible: Always
Steps to Reproduce:
1. Make sure python-sip is installed with version >= 4.15.1
2. Create a basic python plasmoid based on the tutorial
[http://techbase.kde.org/Development/Tutorials/Plasma/PythonPlasmoid]
3. Add one of the following line at the end of the init method:
self.containment().toolBoxItem()
self.containment().toolBox()
4. Start the plasmoid with plasmoidviewer
Actual Results:
This is the output to the console running pasmoidviewer:
Connecting to battery
you don't appear to have a battery.
Traceback (most recent call last):
File "/usr/share/kde4/apps/plasma_scriptengine_python/pyappletscript.py",
line 75, in init
self.pyapplet.init()
File "/home/user/plasmoid-tutorial/contents/code/main.py", line 21, in init
self.containment().toolBox()
RuntimeError: no access to protected functions or signals for objects not
created from Python
Expected Results:
The plasmoid should run without crashing.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kde-bindings
mailing list