

def __init__(self):
    Composite.__init__(self)
    self.signOutLink = HTML("<a href='javascript:;'>Sign Out</a>")
    self.aboutLink = HTML("<a href='javascript:;'>About</a>")
    outer = HorizontalPanel()
    inner = VerticalPanel()
    outer.setHorizontalAlignment(HasAlignment.ALIGN_RIGHT)
    inner.setHorizontalAlignment(HasAlignment.ALIGN_RIGHT)
    links = HorizontalPanel()
    links.setSpacing(4)
    links.add(self.signOutLink)
    links.add(self.aboutLink)
    outer.add(inner)
    inner.add(HTML('<b>Welcome back, foo@example.com</b>'))
    inner.add(links)
    self.signOutLink.addClickListener(self)
    self.aboutLink.addClickListener(self)
    self.initWidget(outer)
    inner.setStyleName('mail-TopPanel')
    links.setStyleName('mail-TopPanelLinks')

dataset/ETHPy150Open pyjs/pyjs/examples/mail/TopPanel.py TopPanel.__init__/original