diff options
Diffstat (limited to 'pykuttans/src')
-rwxr-xr-x | pykuttans/src/kuttans | 18 | ||||
-rw-r--r-- | pykuttans/src/kuttans.py (renamed from pykuttans/src/kuttans_main.py) | 10 |
2 files changed, 20 insertions, 8 deletions
diff --git a/pykuttans/src/kuttans b/pykuttans/src/kuttans new file mode 100755 index 0000000..6794cb2 --- /dev/null +++ b/pykuttans/src/kuttans @@ -0,0 +1,18 @@ +#!/usr/bin/env python +# Copyright (c) 2009 Rajeesh K Nambiar +# +# This program is a free software, you can redistribute it +# under the license of GNU General Public License, verstion 3 +# or a later version (at your option) as published by the +# Free Software Foundation + +import sys +sys.path.append(sys.prefix + '/share/kuttans/') +from kuttans import KuttansApp +from PyQt4 import QtGui + +if __name__ == "__main__": + app = QtGui.QApplication(sys.argv) + myapp = KuttansApp() + myapp.show() + sys.exit(app.exec_()) diff --git a/pykuttans/src/kuttans_main.py b/pykuttans/src/kuttans.py index cb7cf8e..796515f 100644 --- a/pykuttans/src/kuttans_main.py +++ b/pykuttans/src/kuttans.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # # Copyright (c) 2009 Rajeesh K Nambiar <rajeeshknambiar@gmail.com>, -# Rahul <rahulrs@gmx.com> +# Rahul <rahulrs@gmx.com> # # This program is free software you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -34,7 +34,7 @@ QObj = QtCore.QObject # Short name ;-) _app_name = "Kuttans" _app_version = "0.1" -class StartKuttans(QtGui.QMainWindow): +class KuttansApp(QtGui.QMainWindow): def __init__(self, parent=None): self.direction = None @@ -366,9 +366,3 @@ class StartKuttans(QtGui.QMainWindow): self.resize(size) self.move(pos) -if __name__ == "__main__": - app = QtGui.QApplication(sys.argv) - myapp = StartKuttans() - myapp.show() - sys.exit(app.exec_()) - |