def make_ws(self, name, group=1, show_tabs=True, show_border=False,
                detachable=False, tabpos=None, scrollable=True, closeable=False,
                wstype='tabs'):

        if (('nb', 'ws', 'tabs') in wstype) and (not show_tabs):
            wstype = 'stack'

        ws = Workspace(name=name, wstype=wstype,
                       group=group, detachable=detachable)
        ws.add_callback('page-switch', self.switch_page_cb)
        ws.add_callback('page-detach', self.page_detach_cb)

        nb = ws.nb

        if tabpos is None:
            tabpos = 'top'

        if (wstype == 'tabs') and show_tabs:
            nb.set_tab_position(tabpos)

        ## vbox = Widgets.VBox()
        ## toolbar = Widgets.Toolbar(orientation='horizontal')
        ## vbox.add_widget(toolbar, stretch=0)
        ## vbox.add_widget(nb, stretch=1)

        ## # create a Workspace pulldown menu, and add it to the menu bar
        ## winbtn = toolbar.add_action(text="Workspace")

        ## winmenu = Widgets.Menu()
        ## item = winmenu.add_name("Take Tab")
        ## item.add_callback('activated',
        ##                   lambda *args: self.take_tab_cb(nb, args))

        self.workspace[name] = ws
        return ws
dataset/ETHPy150Open ejeschke/ginga/ginga/gw/Desktop.py/Desktop.make_ws/swapped operands of `in`