'I have this error which says that there is no "wrapper" in the module curses
import curses
import os
from curses import wrapper
# import Wrapper as Wp
def design(stdscr):
try:
curses.init_pair(1, curses.COLOR_RED, curses.COLOR_WHITE)
green_black = curses.color_pair(1)
stdscr.clear()
# stdscr.addstr(0,0,"Lmao?",curses.A_UNDERLINE)
stdscr.addstr(0,100,"Text Text Text",green_black | curses.A_UNDERLINE) #Credits
stdscr.refresh()
stdscr.getch()
except curses.error:
print('error occured while running, please check code')
pass
def main(stdscr): #
design(stdscr)
# init_curses = curses.initscr()
wrapper(main)
error:
line 3, in <module>
from curses import wrapper
ImportError: cannot import name 'wrapper' from 'curses'
I tried reinstall the module but it doesn't work, it worked the other day and now it doesn't when I open it, weird....
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
