PDA

View Full Version : Help with pyGtk - multiple windows & tree view scrolling



mejy
December 9th, 2006, 01:28 PM
I'm attempting to make a small app with python & pygtk. So far I'm faced with two problems:


When moving treeview items, they often end up outside the currently visible area and it is unclear that the user needs to scroll up to see the item. I need a way to programatically scroll the treeview.
The app contains two windows, shown one after the other. Each window is show with gtk.main() and destroy with gtk.main_quit(). If there's only one window, the destroy event causes the program to end. However, if another window is shown after the first is destroyed, the program does not end on the destruction of the second one. I have considered keeping a count of open windows and manually exiting the program when there are non left, but this seems very crude and hackish.


Any help on either point much appreciated.

pmasiar
December 10th, 2006, 02:55 AM
Looks like no pyGtk experts around. I do use python whenever I can - but for CGI and databases. Your question is rather specific: I wish you more luck at pyGtk IRC or mailing list (http://www.pygtk.org/feedback.html).