summaryrefslogtreecommitdiffstats
path: root/pykuttans/src
diff options
context:
space:
mode:
authorRajeesh K Nambiar <rajeeshknambiar@gmail.com>2009-04-13 17:08:03 +0530
committerRajeesh K Nambiar <rajeeshknambiar@gmail.com>2009-04-13 17:08:03 +0530
commita2554a586b28e941be05a3609dade823f4589999 (patch)
tree3862426898cefa2a94c1fb0b8f67b11caa8ff7b5 /pykuttans/src
parent75edf366ce7c1dfedf205a5fd3848887c33546fb (diff)
downloadRachana.git-a2554a586b28e941be05a3609dade823f4589999.tar.gz
Rachana.git-a2554a586b28e941be05a3609dade823f4589999.tar.xz
Rachana.git-a2554a586b28e941be05a3609dade823f4589999.zip
Reorganize and modularize Kuttans. Split kuttans_main.py file to kuttans.py and kuttans
Diffstat (limited to 'pykuttans/src')
-rw-r--r--pykuttans/src/__init__.py9
-rwxr-xr-xpykuttans/src/kuttans17
-rw-r--r--pykuttans/src/kuttans.py (renamed from pykuttans/src/kuttans_main.py)10
3 files changed, 28 insertions, 8 deletions
diff --git a/pykuttans/src/__init__.py b/pykuttans/src/__init__.py
new file mode 100644
index 0000000..42d5f08
--- /dev/null
+++ b/pykuttans/src/__init__.py
@@ -0,0 +1,9 @@
+#!/usr/bin/env python
+# Copyright (c) Rajeesh K Nambiar <rajeeshknambiar@gmail.com>
+# module file for Kuttans
+# http://smc.org.in/
+''' Kuttans is a graphical fronted to Payyans written in PyQt4 '''
+
+__AUTHORS__ = [("Rajeesh K Nambiar", "rajeeshknambiar@gmail.com>", "Rahul R S", "<rahulrs@gmx.com>")]
+
+from kuttans import KuttansApp
diff --git a/pykuttans/src/kuttans b/pykuttans/src/kuttans
new file mode 100755
index 0000000..48aa5f7
--- /dev/null
+++ b/pykuttans/src/kuttans
@@ -0,0 +1,17 @@
+#!/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
+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_())
-