blob: 834519364ffbfc203fc306e8c1bfd40aefda4841 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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()
|