Diffstat (limited to 'noncore/tools/pyquicklauncher/testapp.py') (more/less context) (show whitespace changes)
-rwxr-xr-x | noncore/tools/pyquicklauncher/testapp.py | 24 |
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() |