This forum has been archived. All content is frozen. Please use KDE Discuss instead.

need help with plasma widgets

Tags: None
(comma "," separated)
richwandell
Registered Member
Posts
3
Karma
0
OS

need help with plasma widgets

Sat Apr 28, 2012 2:36 pm
hi I am very new to creating plasma widgets. I have gone through the getting started tutorials on the kde development site

i have created the python hello world example. I then packaged the code into a zip file and installed the widget

after I make changes to the code how do I go about getting those changes to affect my installed widget?

I tried uninstalling the widget, re-creating my zip file, then re-installing the widget, but there is no change. The original code is still being run...

If this is posted in the wrong section or this question is too noob-like for the development section please point me in the right direction

thank you
lamarque
Registered Member
Posts
152
Karma
2
OS

Re: need help with plasma widgets

Sat Apr 28, 2012 5:37 pm
Which commands did you use to install the widget? What is the page you got the instructions from?


Software engineer at Petrobrás http://www.petrobras.com.br/en/about-us/
KDE's Network Management maintainer
richwandell
Registered Member
Posts
3
Karma
0
OS

Re: need help with plasma widgets

Sat Apr 28, 2012 7:03 pm
lamarque wrote:Which commands did you use to install the widget? What is the page you got the instructions from?


I first followed this getting started tutorial
http://techbase.kde.org/Development/Tut ... ingStarted

the turorial lists
plasmapkg -i hello-python

for installing the plasmoid

Afterward I clicked the "using widgets tutorial"
http://techbase.kde.org/Development/Tut ... ng_widgets

after changing some code I used

plasmapkg -r hello-python
to remove the plasmoid, then i used

i re-created my .zip file with the updated code

plasmapkg -i hello-python.zip
to reinstall it... and i get the original without my changes (no black box saying hello world from the second link)
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: need help with plasma widgets

Sat Apr 28, 2012 9:19 pm
If you restart Plasma, or try viewing your applet with plasmoidviewer, does the change show up?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
richwandell
Registered Member
Posts
3
Karma
0
OS

Re: need help with plasma widgets

Sun Apr 29, 2012 2:38 am
bcooksley wrote:If you restart Plasma, or try viewing your applet with plasmoidviewer, does the change show up?


The changes never show up. I have been using plasmoidviewer to try it out. After your post i tried restarting plasma with

kquitapp plasma-desktop
kstart plasma-desktop

then i used
plasmoidviewer hello-python

still does not show what I would expect from the second tutorial. It seems to be the exact same code running from when I first installed the plasmoid

thank you for reading my post
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: need help with plasma widgets

Fri May 04, 2012 11:07 am
Can you please try uninstalling your applet, verifying that no further files from your applet exist, and then try to open it? It should fail. If it succeeds in opening it after uninstalling it, then recheck to make sure you have no installations elsewhere.

Once this is done, reinstall your applet again.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft