'Check if the name provided for the WS is valid. If so,
create it and add it to the sidebar. If not, show error.'

def on_click_ok(self, button=None):

    ws_name = self.name_entry.get_text()
    if self.workspace_manager.isWorkspaceNameValid(ws_name):
        ws_desc = self.description_entry.get_text()
        creation_ok = self.create_ws_callback(ws_name, ws_desc)
        if creation_ok:
            self.sidebar.add_workspace(ws_name)
            self.destroy()
    else:
        errorDialog(self, 'Invalid    workspace    name', 'A    workspace    must    be    named    with    all    lowercase    letters    (a-z),    digits(0-9)    or    any    of    the    _$()+-/    characters.    The    name    has    to    start    with    a    lowercase    letter')
