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

[SOLVED] How to create KConfigDialog for plasmoid on python?

Tags: None
(comma "," separated)
Divetoh
Registered Member
Posts
2
Karma
0
How to create standart kde KConfigDialog for pyhton plasmoid?.
C++ API have slot: virtual void createConfigurationInterface (KConfigDialog *parent), rewrite it, and you'll get KConfigDialog object. Python slot createConfigurationInterface(self, parent) don't work, slot showConfigurationInterface(self) work, but it don't give KConfigDialog object.
Another way: I try to make configuration with KConfig XT & ui files - all good, it show standart kde config dialog with two sections: settings and hot keys, but how to connect ok & apply buttons to any slot? Analog of C++ slot: virtual void configChanged () - don't work. Even showConfigurationInterface(self) - stop work's, after creation KConfig XT & UI files.

Is there way to make python plasmoid with standart kde configuration dialog?
Divetoh
Registered Member
Posts
2
Karma
0
I'm find the way. Use KConfig XT & ui files, for make action when configuration changed write somthing like:

Code: Select all
def init(self):
  self.connect(self.configScheme(), SIGNAL("configChanged ()"), self.configChanged)

def configChanged(self):
  you code here
  ...


Bookmarks



Who is online

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