def get_edit_wdg(self):
    div = DivWdg()
    div.add_style('margin-left: -2px')
    icon_div = DivWdg()
    icon_div.add_style('padding: 0px 2px 0px 2px')
    icon_div.set_round_corners(3, corners=['TR', 'TL'])
    from tactic.ui.widget import IconButtonWdg
    icon = IconButtonWdg(title='New Tab', icon=IconWdg.EDIT)
    icon = IconWdg('Edit Tab Definition', IconWdg.EDIT)
    icon.add_style('margin-top: -1px')
    icon.add_style('margin-left: 1px')
    icon_div.add_class('hand')
    icon_div.add(icon)
    icon.add_behavior({'type': 'click_up', 'cbjs_action': '\n        var class_name = \'tactic.ui.tools.tab_edit_wdg.TabEditWdg\';\n        var kwargs = {}\n        spt.panel.load_popup("Tab Edit", class_name, kwargs)\n        '})
    icon_div.add_style('padding-top: 4px')
    icon_div.add_style('float: left')
    icon_div.add_style('height: 20px')
    icon_div.add_style('width: 18px')
    icon_div.add_style('margin-left: 2px')
    icon_div.add_gradient('background', 'background', (- 5), 5)
    icon_div.add_border()
    icon_div.add_style('text-align: center')
    div.add(icon_div)
    return div
def get_edit_wdg(self):
    div = DivWdg()
    div.add_style('margin-left: -2px')
    icon_div = DivWdg()
    icon_div.add_style('padding: 0px 2px 0px 2px')
    icon_div.set_round_corners(3, corners=['TR', 'TL'])
    from tactic.ui.widget import IconButtonWdg
    icon = IconButtonWdg(title='New Tab', icon=IconWdg.EDIT)
    icon = IconWdg('Edit Tab Definition', IconWdg.EDIT)
    icon.add_style('margin-top: -1px')
    icon.add_style('margin-left: 1px')
    icon_div.add_class('hand')
    icon_div.add(icon)
    icon.add_behavior({'type': 'click_up', 'cbjs_action': '\n        var class_name = \'tactic.ui.tools.tab_edit_wdg.TabEditWdg\';\n        var kwargs = {}\n        spt.panel.load_popup("Tab Edit", class_name, kwargs)\n        '})
    icon_div.add_style('padding-top: 4px')
    icon_div.add_style('float: left')
    icon_div.add_style('height: 20px')
    icon_div.add_style('width: 18px')
    icon_div.add_style('margin-left: 2px')
    icon_div.add_gradient('background', 'background', (- 5), 5)
    icon_div.add_border()
    icon_div.add_style('text-align: center')
    div.add(icon_div)
    return div