[see] Adjusts the view in the window so that the character given by
index is completely visible. If index is already visible then the
command does nothing. If index is a short distance out of view, the
command adjusts the view just enough to make index visible at the edge
of the window. If index is far out of view, then the command centers
index in the window.
您可以调用yview方法以特定数量滚动小部件。但是,对于这个特定的用例,文本小部件有see方法,它安排给定索引可见。在
从官方的tcl/tk文档(Tkinter的构建基础上):
相关问题 更多 >
编程相关推荐