Search code examples
c++pythoncgtkpygtk

gtk minimum size


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?


Solution

  • 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)