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)