How do I force a GTK window object to stay the same size, even when a table inside of 开发者_StackOverflow中文版it tries to expand?
I've tried using gtk.SHRINK when attaching children to the table, but the TextViews within the table still keep expanding to way beyond an acceptable width and expanding the window along with it.
You can set the size manually
pyGtk window docs: http://www.pygtk.org/docs/pygtk/class-gtkwindow.html
Text views won't expand if you pack them into a gtk.ScrolledWindow
. This is not what you directly asked, but I believe should solve your problem in a better way.
精彩评论