I'm getting a seg fault when trying to show all the widgets in a window with
show_all().  This was working fine with 0.5.8.  Code is below:

Dave Cook

class Application(GtkWindow):

    """Encapsulates main window for application."""

    def __init__(self, title):
        GtkWindow.__init__(self, WINDOW_TOPLEVEL)
        self.set_title(title)
        self.set_usize(640,480)
        self.connect("destroy", mainquit)
        self.vbox = GtkVBox()
        self.add(self.vbox)
        self.create_menubar()
        self.paned = GtkVPaned()
        self.vbox.pack_start(self.paned)
        self.show_all()                               ##seg faults here
        

    def create_menubar(self):
        hdlbox = GtkHandleBox()
        self.vbox.pack_start(hdlbox, expand=FALSE)
        mf = GtkExtra.MenuFactory()
        mf.add_entries([
        ##        ('File/New', '<control>N', None),
                ('File/Open...', '<control>O', self.open_db),
                ('File/<separator>', None, None),
                ('File/Exit', '<control>Q', mainquit),
                ('Edit/Copy', '<control>C', None),
                ('Edit/Paste', '<control>V', None),
                ('Edit/Clear', None, None),
                ('Python/Reload Module...', None, None),
                ('Python/<separator>', None, None),
                ('Python/Run...', None, None),
                ('Python/Debug...', None, None),
                ('Python/Profile...', None, None),
                ('Help/About...', None, self.about),
        ])
        self.add_accel_group(mf.accelerator)
        hdlbox.add(mf)

.
.
.
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to