您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

python – 在GTK中,如何在屏幕上获得小部件的实际大小?

5b51 2022/1/14 8:23:12 python 字数 1284 阅读 574 来源 www.jb51.cc/python

首先,我查看了get_size_request方法.那里的文档以: To get the size a widget will actually use, call the size_request() instead of this method. 我查看size_request(),结束于 Also remember that the size request is not necessari

概述

To get the size a widget will actually use,call the size_request() instead of this method.

我查看size_request(),结束于

Also remember that the size request is not necessarily the size a widget will actually be allocated.

那么,GTK中是否有任何函数可以获得小部件的实际大小?这是一个屏幕上实际显示的小部件,因此GTK肯定会在某处提供此信息.

The get_allocation() method returns a gtk.gdk.Rectangle containing the bounds of the widget’s allocation.

here起.

总结

以上是编程之家为你收集整理的python – 在GTK中,如何在屏幕上获得小部件的实际大小?全部内容,希望文章能够帮你解决python – 在GTK中,如何在屏幕上获得小部件的实际大小?所遇到的程序开发问题。


如果您也喜欢它,动动您的小指点个赞吧

除非注明,文章均由 laddyq.com 整理发布,欢迎转载。

转载请注明:
链接:http://laddyq.com
来源:laddyq.com
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


联系我
置顶