默认情况下,Python Curses 覆盖层是透明的,其中任何非字符空间都会显示下面的窗口。即使添加“”字符,它仍然显示下面的字符。
有没有办法让覆盖层的空格 (' ') 字符隐藏下面的窗口?我将在稍后删除该窗口,并且不想破坏下部窗口上的数据(当空格为非空字符时,该数据可以正常工作)。
最佳答案
事实证明,我正在寻找的行为正是面板的用途。
Panels are windows with the added feature of depth, so they can be >stacked on top of each other, and only the visible portions of each window >will be displayed. Panels can be added, moved up or down in the stack, and >removed.
关于python - 如何使Python的curses覆盖不透明?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29482807/