Re: [pygtk] applets libglade
Le jeu 06/03/2003 à 13:55, Christian Reis a écrit : On Wed, Mar 05, 2003 at 11:57:24PM +0100, Martin Preishuber wrote: 2.) I create some windows with glade (pygtk2 1.99.15), to use it I do something like: xml = gtk.glade.XML(gladefile) this works fine, but it immidiately shows the window ... is there any way to load it invisible and set it to visible manually later ? I need to fill some parts of the window before it is visible. Go into glade, mark the window, go the Common tab, uncheck Visible. thanks again ... how comes, that I feel somehow stupid now ? :| You shouldn't. This is a very common problem when using liglade to build a complex application -- the parse of the file has the side-effect of rendering the window when it's marked as visible. I've discussed this before, and I'm not sure there is a good solution to the problem. On one hand, you could ignore the visible attribute for top-level windows, but that would be violating the 1-1 correspondence between gladefile and libglade tree which is expected. On the other hand, you could have Glade make GtkWindows not visible my default; but then you have a consistency issue between windows and other widgets. I don't see solutions (beyond stuff like GladeXML(foo.glade, invisible_windows=1) which I don't like very much). But maybe somebody else does. Hi, Here is my approach to use glade for a complex application. I suppose an application with two windows (window1 and an about widget). def on_about_activate(obj): about = XML(foo.glade, about1).get_widget(about1) about.show() def start_foo(): global wTree dic = {gtk_main_quit: mainquit, on_button1_clicked:on_about_activate} gnome.init(foo.glade,2.0) wTree = XML(foo.glade, window1) wTree.signal_autoconnect(dic) At this level only window1 appear and when you button1 is clicked the about1 widget appear too. You haven't to specify anything for a GtkWidget like not visible property. if __name__ == __main__: start_foo() mainloop() Perhaps is not a correct approach but it works very well for. ___ Omar Mekkaoui Thema, University of Cergy-Pontoise France ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] old Glade to the new Glade 2
Hi, I used Python1.5, PyGTK, Gnome.python and the old Glade to develop my application. With the new Glade and python2.2, many modifications are introduced (which is the case in RedHat 8) like (gnome.congig == gconf) and (lib.glade == XML.Glade). Was it possible to develop a littlme synthesis about these modifications. I suppose, it will so interesting for PyGTK mailing list users. For instance, I would like to convert an old glade project in a new glade 2 format using libglade but I don't see how can I do that. Thanks for your help, essentially, for this last point. Omar Mekkaoui THEMA - University de Cergy-Pontoise Economie des Transports ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] old Glade to the new Glade 2
Hi, I used Python1.5, PyGTK, Gnome.python and the old Glade to develop my application. With the new Glade and python2.2, many modifications are introduced (which is the case in RedHat 8) like (gnome.config == gconf) and (lib.glade == XML.Glade). Was it possible to develop a little synthesis about these modifications. I suppose, it will be so interesting for PyGTK mailing list users. For instance, I would like to convert an old glade project in a new glade 2 format using libglade but I don't see how can I do that. Thanks for your help, essentially, for this last point. Omar Mekkaoui THEMA - University de Cergy-Pontoise Economie des Transports ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Re: [pygtk] old Glade to the new Glade 2
Thanks, thanks, It work. Magnifique !!! (fr) Original message Date : Wed, 19 Feb 2003 19:40:04 +0100 De : mekkaoui omar [EMAIL PROTECTED] Objet : [pygtk] old Glade to the new Glade 2 A : [EMAIL PROTECTED] Cc : [EMAIL PROTECTED] Hi, I used Python1.5, PyGTK, Gnome.python and the old Glade to develop my application. With the new Glade and python2.2, many modifications are introduced (which is the case in RedHat 8) like (gnome.config == gconf) and (lib.glade == XML.Glade). Was it possible to develop a little synthesis about these modifications. I suppose, it will be so interesting for PyGTK mailing list users. For instance, I would like to convert an old glade project in a new glade 2 format using libglade but I don't see how can I do that. Thanks for your help, essentially, for this last point. Omar Mekkaoui THEMA - University de Cergy-Pontoise Economie des Transports ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ Omar Mekkaoui THEMA - University de Cergy-Pontoise Economie des Transports ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Re: [pygtk] Compiling with MinGW under Windows
Perhaps you need to install Python devellopement. Original message Date : Tue, 03 Dec 2002 05:00:40 -0500 De : Rene Olsthoorn [EMAIL PROTECTED] Objet : [pygtk] Compiling with MinGW under Windows A : [EMAIL PROTECTED] Hello, I downloaded MinGW and MSYS for Windows, and started the ./configure script of pygtk-1.99.13. The Configure comes pretty far. It correctly checks the python version, but it stops with an error because the Python headers could not be found. The INCLUDE environment variable points to my Python/include directory, so I'm wandering what might be the problem. Any of you experience in using MinGW to compile PyGTK- 1.99.13? Greets and best whishes, René Olsthoorn. -- __ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup One click access to the Top Search Engines http://www.exactsearchbar.com/mailcom ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ Omar Mekkaoui THEMA - University de Cergy-Pontoise Economie des Transports ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Re: [pygtk] updating with combo-entry
Original message Date : Thu, 31 Oct 2002 09:52:14 -0300 De : Christian Reis [EMAIL PROTECTED] Objet : Re: [pygtk] updating with combo-entry A : David M. Cook [EMAIL PROTECTED], [EMAIL PROTECTED] On Wed, Oct 30, 2002 at 04:40:11PM -0800, David M. Cook wrote: On Wed, Oct 30, 2002 at 11:45:23AM +0100, mekkaoui omar wrote: I would like to update information on a window after selecting an entry in the combo. But, I don't know which signal I will use to associate it to an updating function. The simplest way is to add a button to do this, of course, but to save mouse clicks the following seems to work for me: What's wrong with combo.entry.connect(insert_text, my_handler) combo.entry.connect(delete_text, my_handler) ? For this moment, I opt for using a button to update information. In the futur, I prefer to update using mouse button like David M. Cook hase suggested. Thanks to all for their help. Omar Mekkaoui THEMA - University de Cergy-Pontoise Economie des Transports ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] updating with combo-entry
Hi, I use glade to develop my application. I would like to update information on a window after selecting an entry in the combo. But, I don't know which signal I will use to associate it to an updating function. Omar Mekkaoui THEMA - université de Cergy-Pontoise Economie des Transports ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] updating with combo-entry
Hi, I use glade to develop my application. I would like to update information on a window after selecting an entry in the combo. But, I don't know which signal I will use to associate it to an updating function. Thanks in advance. Omar Mekkaoui THEMA - université de Cergy-Pontoise Economie des Transports Tel : (33) 1 34 25 63 16 ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/