概述
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中,如何在屏幕上获得小部件的实际大小?所遇到的程序开发问题。
如果您也喜欢它,动动您的小指点个赞吧