-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 24 May 2004 10:54, Omer Zak wrote: > Meir Kriheli wrote: > >>My pygtk2 version is 1.99.12-7 (the RPM package being used is > >>pygtk2-devel-1.99.12-7, in a RedHat 8.0 installation). > > > > It looks very old (version suggests pre-stable release). > > However, I didn't have stability problems. > > >>Does anyone else have experience in using both Tk and GTK (in Python > >>and/or other languages)? If yes, what do you have to say about the > >>relative merits of both packages? > > > > I've used pytgk (2.2.0 installed) with glade as a proof of concept when > > researching various toolkits/languages for cross platform devel, worked > > quite well here. > > > > What was yucky in your experience? > > 1. This was fixed in a more recent release: PyGTK didn't have bindings > to gtk.TreeRowReference i.e. original PyGTK did not implement bindings > to everything available from GTK. > 2. gtk.TreeView (when used with gtk.ListStore) has the following bizarre > bug. > I want a callback to be called each time the user selects a row. The > callback is to identify the newly-selected row and do something. > However I find that the first time an user selects a row, the 1st row is > selected (this seems to be associated with the widget getting the > focus). The user needs to click again to select the row which he really > wanted to select.
Was it something specific for that version or consistent across all versions of PyGTK (which version of GTK+) ? gtktreeview is modeled as MVC. You connect the slot to the to the "change" signal of gtktreeview's selection object. Don't know if you've seen this tutorial already: http://liw.iki.fi/liw/texts/gtktreeview-tutorial.html > Nowhere in the GTK or PyGTK documentation did I find any hint what could > cause this behavior and how can I have it turned off. > > Another issue which bothers me is the quality of PyGTK documentation > which I found. While PyGTK documents all functions, the documentation > is very cursory. In particular, there are very few (if at all) examples > how a function might be profitably used. I have to refer to C GTK > documentation in order to understand what a function does and how to use > it. Yes, PyGTK's documentation is a problem. It's more of a API list, not real documentation. Right now you have to harvest bits of information from various tutorials. PyGTK's article's page has links to some. > On the other hand, Tk is very well documented, and it is easy for me to > comprehend the mapping between Tk (Tcl/Tk) and Tkinter (Python/Tk) > wherever Tkinter documentation is not sufficiently detailed. Don't know Tk (is has bidi support for all widgets?) to comment on that one, but AFAIK GTK+ is complex compared to Tk (allowing "richer" user experience), and documenting it (not to mention language bindings) is way harder. Guess it depends on your needs. - -- Meir Kriheli MKsoft systems http://www.mksoft.co.il -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAs0dXRkS5DWK1mZkRAtMyAJ9U0ZmIGIFB9sx6ggqeJJhkClJOsACg7ryT hfaLdpHQAoUNm7lr42nSF8U= =wOE7 -----END PGP SIGNATURE----- ================================================================To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
