ons 2003-03-05 klockan 19.24 skrev Martin Preishuber:
> Hi,
>
> just 2 short questions related to gnome-python2 (1.99.15)
>
> 1.) I try to create a panel applet with
>
> myapplet = gnome.applet.Applet()
>
> and it just segfaults, is this the correct usage ?
Something like this:
def sample_factory(applet, iid):
label = gtk.Label("Success!")
applet.add(label)
applet.show_all()
return gtk.TRUE
gnome.applet.bonobo_factory("OAFIID:GNOME_PythonAppletSample_Factory",
gnome.applet.Applet.__gtype__,
"hello", "0", sample_factory)
> 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.
--
Johan Dahlin <[EMAIL PROTECTED]>
Async Open Source
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/