summaryrefslogtreecommitdiffstats
path: root/examples/uimodules/uixml.py
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-16 09:06:37 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-16 09:06:37 +0000
commit39d98386f72c65826e162e3e8fd36752ec469252 (patch)
tree5cec746207c4c892d064beafca1de94568a3aeb9 /examples/uimodules/uixml.py
downloadpytde-39d98386f72c65826e162e3e8fd36752ec469252.tar.gz
pytde-39d98386f72c65826e162e3e8fd36752ec469252.zip
Move python-kde3 to the more correct python-trinity
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/libraries/python-trinity@1247483 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'examples/uimodules/uixml.py')
-rw-r--r--examples/uimodules/uixml.py45
1 files changed, 45 insertions, 0 deletions
diff --git a/examples/uimodules/uixml.py b/examples/uimodules/uixml.py
new file mode 100644
index 0000000..baa6c86
--- /dev/null
+++ b/examples/uimodules/uixml.py
@@ -0,0 +1,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")
+