新窗口与子窗口的区别

2024-09-30 14:38:29 发布

您现在位置:Python中文网/ 问答频道 /正文

我似乎找不到任何关于这两者区别的信息诅咒。纽温以及诅咒。subwin在

你知道吗?在

我想有一个屏幕分为3个不同的部分和不同的更新时间(不是每一个按键都必须更新)。 这是正确的方向吗?在

谢谢你


Tags: 信息屏幕时间方向按键区别subwin纽温
1条回答
网友
1楼 · 发布于 2024-09-30 14:38:29

但你帮不了你。在

Calling newwin() creates and returns a pointer to a new window with the given number of lines and columns. The upper left-hand corner of the window is at line begin_y, column begin_x. If either nlines or ncols is zero, they default to LINES-begin_y and COLS-begin_x. A new full-screen window is created by calling newwin(0,0,0,0).

Calling subwin() creates and returns a pointer to a new window with the given number of lines, nlines, and columns, ncols. The window is at position (begin_y, begin_x) on the screen. (This position is relative to the screen, and not to the window orig.) The window is made in the middle of the window orig, so that changes made to one window will affect both windows. The subwindow shares memory with the window orig. When using this routine, it is necessary to call touchwin() or touchline() on orig before calling wrefresh() on the subwindow.

http://www.mkssoftware.com/docs/man3/curs_window.3.asp

相关问题 更多 >