def __init__(self, hrs=0, mins=0, secs=0): self.isActive = False self.hrs = hrs self.mins = mins self.secs = secs HTML.__init__(self) self.setDisplay(self.hrs, self.mins, self.secs) self.onTimer()
def __init__(self, tags = None, width = 300, selected = None, myid = 'select2example'): #log.info("tags='%s' width='%s' selected='%s'", tags, width, selected) self.myid = myid self.tags = tags # This markup is used by select2 to configure the component html = '<p><input type="hidden" id="%s" style="width:%dpx"/></p>' % (myid, width) html += '<div id="%s-show"></div>' % (myid) self.selected = selected log.info("html = '%s'", html) HTML.__init__(self, html)
def __init__(self,text,styles,prev,constraints,enforce_constraints,update_widgets): #Constraints are of the forms (x,y) where #both x and y are integers in the set of possible #states. x represents the state of this word #and y represents the state of the previous word HTML.__init__(self,text) self.text = text self.addClickListener(self) self.state = 0 self.styles = styles self.prev = prev self.constraints = constraints self.enforce_constraints = enforce_constraints self.update_widgets = update_widgets self.addStyleName("clickable")
def __init__(self, html=None, wordWrap=True, **kwargs): kwargs['StyleName'] = kwargs.get('StyleName', "gwt-InlineHTML") kwargs['Element'] = DOM.createSpan() HTML.__init__(self, html, wordWrap, **kwargs)
def __init__(self, html=None, wordWrap=True, **kwargs): HTML.__init__(self, html, wordWrap, **kwargs) self.setHTML('Surfboards can be cool.')
def __init__(self, html=None, wordWrap=True, **kwargs): HTML.__init__(self, html, wordWrap, **kwargs) self.setHTML('Ships are reliable.')
def __init__(self, text): HTML.__init__(self, text) ClickHandler.__init__(self, preventDefault=True) self.addClickListener(self)
def __init__(self, html=None, wordWrap=True, Element=None, **kwargs): self.converter = getShowdown() HTML.__init__(self, html, wordWrap, Element, **kwargs)