2006年02月09日 星期四 14:26
查了很多东西,有个ScreenToClient的,是这个吗?在wxPython中怎么用 啊?
2006年02月09日 星期四 15:21
wxWindow::GetPosition *virtual void* *GetPosition*(*int* **x*, *int* **y*) *const* *wxPoint* *GetPosition*() *const* This gets the position of the window in pixels, relative to the parent window for the child windows or relative to the display origin for the top level windows. *Parameters* *x* Receives the x position of the window. *y* Receives the y position of the window. *wxPython note:* In place of a single overloaded method name, wxPython implements the following methods: *GetPosition()* Returns a wxPoint *GetPositionTuple()* Returns a tuple (x, y) *wxPerl note:* In wxPerl there are two methods instead of a single overloaded method: *GetPosition()* Returns a Wx::Point *GetPositionXY()* Returns a 2-element list ( x, y ) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060209/65e881c2/attachment.htm
2006年02月09日 星期四 16:35
谢谢!~ 如果可以再麻烦告诉一下获取屏幕分辨率的方法。:P 文档不熟悉,查不来啊。:( 试着查screen,可没找到。 On 2/9/06, 黑沙 <fred.li.1979.m.bj.prc at gmail.com> wrote: > > wxWindow::GetPosition > > *virtual void* *GetPosition*(*int* **x*, *int* **y*) *const* > > *wxPoint* *GetPosition*() *const* > > This gets the position of the window in pixels, relative to the parent > window for the child windows or relative to the display origin for the top > level windows. > > *Parameters* > > *x* > > Receives the x position of the window. > > *y* > > Receives the y position of the window. > > *wxPython note:* In place of a single overloaded method name, wxPython > implements the following methods: > > > *GetPosition()* Returns a wxPoint *GetPositionTuple()* Returns a > tuple (x, y) > > *wxPerl note:* In wxPerl there are two methods instead of a single > overloaded method: > > > *GetPosition()* Returns a Wx::Point *GetPositionXY()* Returns a > 2-element list ( x, y ) > > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060209/f762ddd3/attachment.html
2006年02月09日 星期四 17:02
wxSystemSettings.GetMetric(wxSYS_SCREEN_X) 找到了:) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060209/a9dfb861/attachment.html
Zeuux © 2025
京ICP备05028076号