This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Demo/curses/tclock.py raises error.
Type: Stage:
Components: Demos and Tools Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, fdrake
Priority: low Keywords:

Created on 2000-12-23 05:52 by fdrake, last changed 2022-04-10 16:03 by admin. This issue is now closed.

Messages (3)
msg2737 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2000-12-23 05:52
Demo/curses/tclock.py raises the following exception:

Traceback (most recent call last):
  File "tclock.py", line 149, in ?
    curses.wrapper(main)
  File "/home/fdrake/projects/python/Lib/curses/wrapper.py", line 44, in wrapper    res = apply(func, (stdscr,) + rest)
  File "tclock.py", line 96, in main
    stdscr.addstr(cy - sdy, cx + sdx, "%d" % (i + 1))
_curses.error: addstr() returned ERR

This is on Linux-Mandrake 7.1, ncurses packages ncurses-5.0-13mdk and ncurses-devel-5.0-13mdk.
msg2738 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2000-12-23 14:51
Ah, you must have run it in a tall skinny window.  Fixed in revision 1.2,
I think.  Please close this bug report if it now works for you.
msg2739 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2000-12-23 16:58
Andrew fixed this in Demo/curses/tclock.py revision 1.2; closing the bug.
Your diagnosis was right on the mark.
History
Date User Action Args
2022-04-10 16:03:34adminsetgithub: 33631
2000-12-23 05:52:49fdrakecreate