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

Plasmoid in Python: how to add a configuration interface

Tags: None
(comma "," separated)
blackhat77
Registered Member
Posts
2
Karma
0
Hi,
I would like to add a configuration Interface to my plasmoid in Python. I can not find suitable sample that I can read to learn how to do it. Would you please be so kind to drop me down me a runnable sample? please...

How to open the dialog? Where will be my data saved?

Thank you

Nicola
blackhat77
Registered Member
Posts
2
Karma
0
Actually I made some steps alone...

I have of course activated the flag

Code: Select all
 self.setHasConfigurationInterface(True)


I have created this showConfigurationInterface() in my Main class:

Code: Select all
    def showConfigurationInterface( self ):
        self._test = Plasma.Dialog()
        self._dlg = frmConnect(self._test)
        self._dlg.show()


and I have added a new class that inherits from Plasma.Dialog

Code: Select all

class frmConnect(Plasma.Dialog):
    def __init__(self,parent = None):
        Plasma.Dialog.__init__(self,parent)
        print "I am here in the Dialog"
        self.resize(547,140)
        self.setVisible(True)



But I can not see the dialog :'(

What am I doing wrong?

Last edited by blackhat77 on Thu Feb 26, 2009 9:23 am, edited 1 time in total.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell