问题
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