summaryrefslogtreecommitdiff
path: root/noncore/tools/pyquicklauncher/testapp.py
authormickeyl <mickeyl>2004-06-03 15:05:06 (UTC)
committer mickeyl <mickeyl>2004-06-03 15:05:06 (UTC)
commitce869b104ed2272f9970e37374e4391c77c7cb56 (patch) (side-by-side diff)
tree5aec64d9f1f707a143f8cfa805b5e9ed8698e153 /noncore/tools/pyquicklauncher/testapp.py
parentd69bbb60712b6067252a11ed6d8625807eae1b1c (diff)
downloadopie-ce869b104ed2272f9970e37374e4391c77c7cb56.zip
opie-ce869b104ed2272f9970e37374e4391c77c7cb56.tar.gz
opie-ce869b104ed2272f9970e37374e4391c77c7cb56.tar.bz2
add the actual python quicklauncher server
Diffstat (limited to 'noncore/tools/pyquicklauncher/testapp.py') (more/less context) (ignore whitespace changes)
-rwxr-xr-xnoncore/tools/pyquicklauncher/testapp.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/noncore/tools/pyquicklauncher/testapp.py b/noncore/tools/pyquicklauncher/testapp.py
new file mode 100755
index 0000000..8345193
--- a/dev/null
+++ b/noncore/tools/pyquicklauncher/testapp.py
@@ -0,0 +1,24 @@
+#!/usr/bin/env python
+# -*- coding: iso8859-15 -*-
+#--------------------------------------------------------------------------------------------------#
+from qt import *
+import sys
+#--------------------------------------------------------------------------------------------------#
+class MyApplication( QApplication ):
+
+ def __init__( self, argv ):
+ QApplication.__init__( self, [] )
+ self.b = QPushButton( """This is an example application using Mickey's
+fascinating Python Quicklaunch technology!
+Close me to quit this application.""", None )
+ self.b.show()
+ self.setMainWidget( self.b )
+#--------------------------------------------------------------------------------------------------#
+
+if __name__ == "__main__":
+ print "Standalone!"
+else:
+ print "Quickapp!"
+
+ app = MyApplication( sys.argv )
+ app.exec_loop()