adding file with Input object
authorAlexandr Popov <popov2al@gmail.com>
Mon, 9 Mar 2009 11:15:10 +0000 (14:15 +0300)
committerAlexandr Popov <popov2al@gmail.com>
Mon, 9 Mar 2009 11:15:10 +0000 (14:15 +0300)
src/input.py [new file with mode: 0644]

diff --git a/src/input.py b/src/input.py
new file mode 100644 (file)
index 0000000..0287768
--- /dev/null
@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+# -*-coding: utf-8 -*-
+# vim: sw=4 ts=4 expandtab ai
+# pylint: disable-msg=C0301
+
+class Input(object):
+    def get_st_par(self, ui):
+        self.st_dir, self.st_cnt = ui.get()
+        return self.st_dir, self.st_cnt
+        
+    def __init__(self, cur_ui):
+        if cur_ui is 'console':
+            from optpaser import OptParser
+            self.get_st_par(OptParser)