gtk minimum size

倖福魔咒の 提交于 2019-12-22 06:47:31

问题


Is there an easy way to request that a GTK widget have a minimum width/height? I know you can do it on the column of a TreeView, but is it available for general widgets?


回答1:


For C/C++: gtk_widget_set_size_request()

Sets the minimum size of a widget; that is, the widget's size request will be width by height.

PyGTK: def set_size_request(width, height)



来源:https://stackoverflow.com/questions/3916762/gtk-minimum-size

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!