Notice I have used the self._o in this script but it crashes!
I don't think the typos below solve the problem.
Have you tried this script with the patched wrapper?
Thank you again
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
On 1/17/00, 9:39:42 PM, ChiDeok Hwang <[EMAIL PROTECTED]> wrote
regarding Re: [pygtk] Help with GnomeMDI/GtkPlug, GtkSocket:
> There are some typos in mdi wrapper of pygnome.
> With the attached patch, you will get the better chance to
> succeed to use mdi.
> I never used mdi, so can't help you no more.
> On Mon, Jan 17, 2000 at 06:59:02PM +0000, Hassan Aurag wrote:
> >
> > Hi,
> >
> > I am working with pygnome 1.0.50
> >
> > Now, for a long time, I have been trying to work with MDI without
> > success.
> >
> > For example, what's wrong with the following:
> >
> >
> >
> > #######START CODE
> > from gtk import GtkCurve, mainloop
> > from gnome.ui import GnomeMDIGenericChild, GnomeMDI
> > from _gnomeui import gnome_mdi_generic_child_set_view_creator
> >
> >
> > mdi = GnomeMDI('some-app', 'Title')
> >
> > def my_create_view(child, whatever=None):
> > return GtkHBox() # not a toplevel widget
> > child = GnomeMDIGenericChild('some-name')
> >
> > ##Without the child._o it complains that it needs a gtkobject and not
> > an
> > ##instance. With the object it segfaults
> >
> > gnome_mdi_generic_child_set_view_creator(child._o,my_create_view, 1)
> >
> > mdi.add_child(child)
> > # create a view for the child:
> > mdi.create_view(child)
> >
> > mainloop()
> >
> >
> > ####ENDCODE
> >
> > So can someone out there please write a simple and useless:
> >
> > mdi=GnomeMDI(...)
> >
> > child=GnomeMDIChild or GenericChild
> >
> > with just one empty GtkHBox in it or any other widget that works.
> >
> > By working, I mean:
> >
> > a MDI.py file that works with python MDI.py
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]