gtk minimum size

2019-05-01 23:39发布

问题:

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)