Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #38507

Python3 curses behavior

Newsgroups comp.lang.python
Date 2013-02-09 03:23 -0800
Message-ID <3adc871c-9a35-42ea-9687-52413d72a918@googlegroups.com> (permalink)
Subject Python3 curses behavior
From Vlasov Vitaly <vnigtha@gmail.com>

Show all headers | View raw


Hello.

I found strange behavior of curses module, that i can't understand. I initialize screen with curses.initscr(), then i create subwin of screen with screen.subwin(my_subwin_sizes). After that i fill subwin with my_char in for-loop. On last char in last line subwin.addch() raises exception.

This is my problem. Why? How to fix it?

(If i will ignore exception, then last char will be displayed)

Here simple example:
http://pastebin.com/SjyMsHZB

Thank You!

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Python3 curses behavior Vlasov Vitaly <vnigtha@gmail.com> - 2013-02-09 03:23 -0800
  Re: Python3 curses behavior Chris Angelico <rosuav@gmail.com> - 2013-02-09 22:28 +1100
    Re: Python3 curses behavior Vlasov Vitaly <vnigtha@gmail.com> - 2013-02-09 04:38 -0800
    Re: Python3 curses behavior Vlasov Vitaly <vnigtha@gmail.com> - 2013-02-09 04:38 -0800
  Re: Python3 curses behavior Terry Reedy <tjreedy@udel.edu> - 2013-02-09 14:22 -0500
    Re: Python3 curses behavior Vlasov Vitaly <vnigtha@gmail.com> - 2013-02-10 14:06 -0800
      Re: Python3 curses behavior Dan Stromberg <drsalists@gmail.com> - 2013-02-11 15:53 -0800
    Re: Python3 curses behavior Vlasov Vitaly <vnigtha@gmail.com> - 2013-02-10 14:06 -0800

csiph-web