def __init__(self, upImageText = None, downImageText=None, handler = None, **kwargs): """ Constructor for ToggleButton. """ kwargs['StyleName'] = kwargs.get('StyleName', self.STYLENAME_DEFAULT) CustomButton.__init__(self, upImageText, downImageText, handler, **kwargs)
def __init__(self, upImageText = None, downImageText=None, handler = None, **kwargs): """ Constructor for PushButton. """ if not kwargs.has_key('StyleName'): kwargs['StyleName']=self.STYLENAME_DEFAULT CustomButton.__init__(self, upImageText, downImageText, handler, **kwargs)
def __init__(self, upImageText=None, downImageText=None, handler=None, **kwargs): """ Constructor for ToggleButton. """ kwargs['StyleName'] = kwargs.get('StyleName', self.STYLENAME_DEFAULT) CustomButton.__init__(self, upImageText, downImageText, handler, **kwargs)
def __init__(self, upImageText=None, downImageText=None, handler=None, **kwargs): """ Constructor for PushButton. """ if not kwargs.has_key('StyleName'): kwargs['StyleName'] = self.STYLENAME_DEFAULT CustomButton.__init__(self, upImageText, downImageText, handler, **kwargs)
def onClick(self, sender=None): self.toggleDown() CustomButton.onClick(self)
def onClick(self, sender=None): self.setDown(False) CustomButton.onClick(self)