

def onClick(self, sender):
    if (sender == self.signOutLink):
        Window.alert('If this were implemented, you would be signed out now.')
    elif (sender == self.aboutLink):
        dlg = AboutDialog()
        left = ((Window.getClientWidth() - 512) / 2)
        top = ((Window.getClientHeight() - 256) / 2)
        Logger('TopPanel', ('left: %d' % left))
        Logger('TopPanel', ('top: %d' % top))
        dlg.setPopupPosition(left, top)
        dlg.show()

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