def __init__(self, *args): QtGui.QWidget.__init__(self,None) self.ui = Ui_networkWidget() self.ui.setupUi(self) moduleInfo = KCModuleInfo("kcm_synaptiks.desktop") tp = KCModuleProxy(moduleInfo) self.ui.layout.addWidget(tp)
class Widget(QtGui.QWidget, ScreenWidget): title = ki18n("TouchPad Configuration") desc = ki18n("TouchPad Configuration") running = False proc = QProcess() def __init__(self, *args): QtGui.QWidget.__init__(self,None) self.ui = Ui_networkWidget() self.ui.setupUi(self) moduleInfo = KCModuleInfo("kcm_synaptiks.desktop") tp = KCModuleProxy(moduleInfo) self.ui.layout.addWidget(tp) def execute(self): return True