File: uixml.py

package info (click to toggle)
python-kde3 3.15.2%2B20060422-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 14,620 kB
  • ctags: 7,123
  • sloc: python: 5,100; cpp: 4,676; ansic: 629; makefile: 116
file content (45 lines) | stat: -rw-r--r-- 1,198 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import os

from qt import QLabel

from kdecore import KApplication

class PageLaunch:
    def __init__ (self, parent):
        self.page = parent.addPage ()

        x = 10
        y = 10

        launchLbl   = QLabel ("Launching application ... please wait\n\nClose launched application to continue", self.page)
        launchLbl.setGeometry (x, y, 300, 80)
        launchLbl.show ()

        self.page.show ()

        KApplication.kApplication ().processEvents ()

def xmlKActionCollection (parent):
    parent.currentPageObj = PageLaunch (parent)
    os.system ("python xmlmenudemo.py")

def xmlKEditToolbar (parent):
    parent.currentPageObj = PageLaunch (parent)
    os.system ("python xmlmenudemo.py")

def xmlKEditToolbarWidget (parent):
    parent.currentPageObj = PageLaunch (parent)
    os.system ("python xmlmenudemo.py")

def xmlKXMLGUIBuilder (parent):
    parent.currentPageObj = PageLaunch (parent)
    os.system ("python xmlmenudemo.py")

def xmlKXMLGUIClient (parent):
    parent.currentPageObj = PageLaunch (parent)
    os.system ("python xmlmenudemo.py")

def xmlKXMLGUIFactory (parent):
    parent.currentPageObj = PageLaunch (parent)
    os.system ("python xmlmenudemo.py")