[pygtk] set_interactive documentation
Hello everybody, A few years ago I wrote a patch to allow interactive usage of pygtk, by including a new function set_interactive. The code in this patch was included in pygtk versions 2.15.0 and later. I would like to add some documentation for this function, but I am wondering what the appropriate place for that is. The PyGTK reference manual at http://library.gnome.org/devel/pygtk/stable/ describes classes in pygtk, while set_interactive is a function. Section 1.1 in the pygtk tutorial is more relevant: http://www.pygtk.org/pygtk2tutorial/ch-Introduction.html#sec-ExploringPygtk but the tutorial is based on pygtk version 2.4. It seeme to me that later in the tutorial there are some additions of later widgets. What would be the right place to add this documentation? I can't say and I can't really understand what the function does. Interactive PyGTK isn't what you can to via ipython -gthread? I use it a lot while debugging. sandro *:-) -- Sandro Dentella *:-) http://sqlkit.argolinux.orgSQLkit home page - PyGTK/python/sqlalchemy ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
Re: [pygtk] Prevent expansion of combobox in a table
Hi Durand, yes, gtk.SHRINK and gtk.EXPAND should have a similar desired result in this particular case. But be advised to look out for later quirks. gtk.SHRINK and gtk.FILL do control the resizing-behaviour of the widget contained by the cell, where gtk.EXPAND tells the containing cell, to use any avaiable space and doesn't influence the contained widget itself directly. So maybe you are interested in shrinking the Kanji-cells, but i doubt your interested in shrinking the dropdown-cell. Regards, Don ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
Re: [pygtk] Prevent expansion of combobox in a table
Oh ok. I kind of understand what you mean. I'll do some research into them. Thanks! On Sat, 22 May 2010 09:18:24 +0100, Don Question donquest...@rocketmail.com wrote: Hi Durand, yes, gtk.SHRINK and gtk.EXPAND should have a similar desired result in this particular case. But be advised to look out for later quirks. gtk.SHRINK and gtk.FILL do control the resizing-behaviour of the widget contained by the cell, where gtk.EXPAND tells the containing cell, to use any avaiable space and doesn't influence the contained widget itself directly. So maybe you are interested in shrinking the Kanji-cells, but i doubt your interested in shrinking the dropdown-cell. Regards, Don ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
Re: [pygtk] set_interactive documentation
Thanks for your reply. --- On Sat, 5/22/10, Alessandro Dentella san...@e-den.it wrote: It seeme to me that later in the tutorial there are some additions of later widgets. Good point. I'll write an update for the tutorial then. I can't say and I can't really understand what the function does. This is exactly why I want to supply some documentation :-). Interactive PyGTK isn't what you can to via ipython -gthread? ipython -gthread is what you needed to do with older versions of pygtk. With pygtk 2.15.0 or later, both ipython and plain python itself will give you interactive pygtk. You can still use ipython -gthread, but if you have a recent version of pygtk, ipython 0.10 will tell you that you won't need to use -gthread: mdehoon:~ $ ipython -gthread Your PyGtk has set_interactive(), so you can use the more stable single-threaded Gtk mode. See https://bugs.launchpad.net/ipython/+bug/270856 ... In [1]: Thanks again, --Michiel. ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/