File: pykcm.py

package info (click to toggle)
pykde4 4%3A4.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 30,864 kB
  • ctags: 18,431
  • sloc: python: 2,063; cpp: 327; makefile: 52; sh: 5
file content (19 lines) | stat: -rw-r--r-- 632 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
from PyQt4.QtGui import *
from PyKDE4.kdecore import *
from PyKDE4.kdeui import *

class PyKcm(KCModule):
    def __init__(self, component_data, parent):
        print("PyKcm constructor")
        KCModule.__init__(self,component_data, parent)
        print("PyKcm constructor done")
        self.hello = QLabel("Hello kcmodule world from Python",self)

print("Loading pykcm.py")

def CreatePlugin(widget_parent, parent, component_data):
    print("WIdget parent:"+repr(widget_parent))
    print(r"\o/ Yippie! it kind of works!")
    print("component data: " +repr(component_data))
    return PyKcm(component_data, widget_parent)