Source

gtkarchitect-main / gtkarchitect / view / workspace.py

Full commit

import gtk

from .base import Slave

class Workspace(Slave):

    def create_ui(self):
        self.nb = gtk.Notebook()
        self.get_toplevel().pack_start(self.nb)

    def set_project(self, project):
        pass

    def add_toplevel(self, gadget):
        self.nb.append_page(gadget)
        self.nb.show_all()