Trees | Indices | Help |
|
---|
|
1 #-*- coding: utf8 -* 2 # 3 # Max E. Kuznecov ~syhpoon <syhpoon@syhpoon.name> 2008 4 # 5 # This file is part of XYZCommander. 6 # XYZCommander is free software: you can redistribute it and/or modify 7 # it under the terms of the GNU Lesser Public License as published by 8 # the Free Software Foundation, either version 3 of the License, or 9 # (at your option) any later version. 10 # XYZCommander is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # GNU Lesser Public License for more details. 14 # You should have received a copy of the GNU Lesser Public License 15 # along with XYZCommander. If not, see <http://www.gnu.org/licenses/>. 16 17 import urwid 1820 """ 21 Initiate terminal driver 22 23 @param lib: Driver lib: raw or curses 24 """ 25 26 if lib == "curses": 27 import urwid.curses_display as display 28 else: 29 import urwid.raw_display as display 30 31 return display.Screen()3234 if hasattr(urwid, "VERSION") and urwid.VERSION >= (0, 9, 9): 35 return True 36 else: 37 return False38
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Sep 16 01:51:59 2010 | http://epydoc.sourceforge.net |