From 9891408445ad0a1f252c48d19e33814c498c73ce Mon Sep 17 00:00:00 2001 From: Alexandr Popov Date: Mon, 9 Mar 2009 14:15:10 +0300 Subject: [PATCH] adding file with Input object --- src/input.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/input.py diff --git a/src/input.py b/src/input.py new file mode 100644 index 0000000..0287768 --- /dev/null +++ b/src/input.py @@ -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) -- 1.7.9.5