Hello, How to make a window loaded with libglade to be modal? I'm using the following code to load the window:
#-------------------------------------
class wndAddUser:
def __init__(self):
self.xml = gtk.glade.XML(GLADE_PATH + 'interface.glade',
'windowAddUser')
self.xml.signal_autoconnect({
'on_buttonCancel_clicked':self.Cancel,
'on_buttonAdd_clicked':self.Add
})
self.AddUser = self.xml.get_widget('windowAddUser')
self.AddUser.set_modal(gtk.TRUE)
def Cancel(self, widget = None, data = None):
self.AddUser.hide()
def Add(self, widget = None, data = None):
self.AddUser.hide()
#-------------------------------------
I set both, Glade and source code modal property to TRUE, but the window
remains a non-modal one. libglade doesn't honor all of the Glade's
window properties?
How to set the parent window of a window loaded with the libglade? In
one way that a second window (after the main app window) doesn't be
shown in the task bar? I tried to add
'self.AddUser.set_parent_window(...)' right before
'self.AddUser.set_modal(gtk.TRUE)' line but it had no effect.
Plus, how to prevent "self.xml = gtk.glade.XML(GLADE_PATH +
'interface.glade', 'windowAddUser')" to show the window without a
subsequent call to 'hide()' method?
--
Adriano Del Vigna de Almeida
<katmandu at fs dot inf dot br>
Freesoftware - Brasil
signature.asc
Description: Esta =?ISO-8859-1?Q?=E9?= uma parte de mensagem assinada digitalmente
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
