简体   繁体   English

无法将python-2.7 curses移植到python-2.4

[英]Trouble porting over python-2.7 curses to python-2.4

I wrote my python code at home for 2.7, but now I'm trying to fix it to run on 2.4 here at work. 我在家中为2.7编写了python代码,但现在我想将其修复为在此处运行于2.4。

The first is hline does not work for me. 首先是Hline对我不起作用。 I have 我有

stdscr.hline(0,0,'=',5)

but it only prints out one = sign. 但是它只打印出一个=符号。

Second is chgat does not work in 第二是chgat无法在

screen.chgat(0,0,-1,curses.color_pair(2)

as it returns AttributeError: chgat 当它返回AttributeError: chgat

Not sure how to disable cursors since 不确定如何禁用游标,因为

curses.curs_set(0)` doesn't work either.`enter code here`

I can't find any documentation on curses for python 2.4.3 so I'm having trouble porting this over. 我在python 2.4.3的curses上找不到任何文档,因此我很难将其移植过来。

The answer to your precise question "documentation on curses for python 2.4.3" is: 您的精确问题“有关python 2.4.3的curses文档”的答案是:

http://docs.python.org/release/2.4.3/lib/module-curses.html http://docs.python.org/release/2.4.3/lib/module-curses.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM