Re: [pygtk] Opening one window from another
Ing. Nestor Alonso Torres wrote: I have an application that launches a window. That window (let's call it A) has a menu; there you can select one in many options. I need that when the user selects an option, that window A closes, and open another window B[1,2,3], according with the option selected in A. I use to do that opening B from A, making A invisible, and then, from B, destroying A. That doesn't seems to work with pyGTK... If I am understanding what you want, here is how I replace one window with another. From window A (which calls itself main) I call the child passing in itself as a parameter, something like: self.child = B(self.main) self.main.hide() Then from B (which refers to A as parent and itself as main) in __init__() I call: self.posx, self.posy = self.parent.get_position() self.main.move(self.posx, self.posy) self.main.show() Then when I am done with B and want to replace it with A I do this from B: self.main.hide() self.parent.show() self.main.unrealize() That is how I do it and it seems to work well. Kurt -- Kurt Symanzik [EMAIL PROTECTED] Skype id: ksymanzik http://kbsymanzik.org ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] Opening one window from another
Hi there! I have the following problem: I have an application that launches a window. That window (let's call it A) has a menu; there you can select one in many options. I need that when the user selects an option, that window A closes, and open another window B[1,2,3], according with the option selected in A. I use to do that opening B from A, making A invisible, and then, from B, destroying A. That doesn't seems to work with pyGTK... I appreciate any suggestions, link or method. Best Regards, Ing. Nestor Alonso Torres :. Dpto Telecomunicaciones, CUJAE Linux User #349581 __ V Conferencia Internacional de Energía Renovable, Ahorro de Energía y Educación Energética. 22 al 25 de mayo de 2007 Palacio de las Convenciones, Ciudad de la Habana, Cuba http://www.cujae.edu.cu/eventos/cier Participe en Universidad 2008. 11 al 15 de febrero del 2008. Palacio de las Convenciones, Ciudad de la Habana, Cuba http://www.universidad2008.cu ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] Access to the text entry in gtk.FileChoosers?
Hi all, Using gtk.FileChooser, I was wondering a bit about why access is provided to changes within only some of the widgets inside it. For example, there is the signal "current-folder-changed" that tells me if the user changes folder, and the signal "selection-changed" if they select a file from the list. But there seems to be no way of telling if they type something into the filename text entry at the top (for the _SAVE variety of FileChooser). It seems odd to me that gtk.FileChooser isn't a "black box" in that some of its components are visible to the outside world, but yet not all of them are exposed in this way. Why is this? Is there any workaround supposing I want to do this? Regards, Geoff Bache ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/