![]() Registered Member ![]()
|
Hi everybody,
I'm currently writing my first "proper" plasmoid using python. Its purpose is to play an audio stream from a url provided by the user with a very simple ui. Basically click once -> play , click again -> stop. It's working so far (with the stream address hardcoded) and i had id working with a very simple configuration ui which was just a lineEdit to enter the stream address. The problem i have now is that i wanted to integrate the option to the config ui to save a couple of streams in a list and to select one to be played. The interface looks like this now http://imagebin.ca/view/IpevFN.html. I've added two custom slots to the dialog (addItem, removeItem) to handle the urls in the lineEdit and listWidget, i've just got no idea how to implement the functions while still keeping KconfigXT working. The code I've got so far is: content/code/main.py
and content/config/main.xml
the ui file is content/ui/config.ui http://pastebin.ca/1580454 I've tried to use pyuic and manually create the configuration interface like this plasmoid does (http://www.kde-look.org/content/show.php/WakeClose?content=106451) , but it broke the KConfig stuff. So, does anybody have an idea how to make my config dialog do what i want? Thanks in advance for any help you could give me! Edit: I've decided on the create-my-own-config approch with createConfigurationInterface now. It'a not as straight-forward as I would have liked, but it's working. For anybody interested in the final outcome, see http://kde-look.org/content/show.php/Si ... ent=112825 |
Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]