def __init__(self, n, limit): Label.__init__(self, "Sorry, your query had too many (%s) results! The current " "supported limit is %s." % ( utils.splitthousands(n), utils.splitthousands(limit)), StyleName='userlist-error-title')
def __init__(self, ctype, data): Label.__init__(self) AddablePanel.__init__(self) self.setStyleName('content_text') self.setText("'%s' content:" % ctype) self.content = HTML(data, StyleName='content') self.append(self.content)
def __init__(self, text=None, forid=None, wordWrap=True, **kwargs): if not kwargs.has_key('Element'): element = DOM.createLabel() if forid: element.setAttribute("for", forid) kwargs['Element'] = element Label.__init__(self, text, wordWrap, **kwargs)
def __init__(self, countdown=1000): Timer.__init__(self) Label.__init__(self) self.countdown = countdown self.task_id = None self.wait_cnt = 0 self.remote_py = \ EchoServicePython(server="flask", flask_view_type="celery")
def __init__(self, name, age): #Label.__init__(self, Element=DOM.createElement('div')) #self.dragHandler = DragHandler() #self.dragHandler.addDragListener(self) Label.__init__(self, Element=DOM.createElement('li')) self.student_name = name self.age = int(age) self.setText("%s (%s)" % (self.student_name, self.age)) self.setStyleName('dragme')
def __init__(self, text=None, listener=None, **kwargs): if not kwargs.has_key("Element"): element = DOM.createElement("a") element.setAttribute("href", "javascript:void(0)") kwargs["Element"] = element if not kwargs.has_key("StyleName"): kwargs["StyleName"] = "pseudolink" Label.__init__(self, text, True, **kwargs) if listener: self.addClickListener(listener)
def __init__(self): Label.__init__(self, Element=DOM.createElement('div')) self.setText("Drag me!") DragWidget.__init__(self) self.setStyleName('dragme1')
def __init__(self): Label.__init__(self, Element=DOM.createElement('div')) DropWidget.__init__(self) self.setText("Drop here!") self.setStyleName('drophere')
def __init__(self, html=None, wordWrap=True, **kwargs): kwargs['StyleName'] = kwargs.get('StyleName', "gwt-HTML") if html: kwargs['HTML'] = html Label.__init__(self, wordWrap=wordWrap, **kwargs) self.sinkEvents(Event.ONCLICK | Event.MOUSEEVENTS)
def __init__(self, text=None, wordWrap=True, **kwargs): kwargs['StyleName'] = kwargs.get('StyleName', "gwt-InlineLabel") kwargs['Element'] = DOM.createSpan() Label.__init__(self, text, wordWrap, **kwargs)
def __init__(self, text): Label.__init__(self, text) self.setStyleName('dragme2') self.setStyleAttribute('position', 'absolute')
def __init__(self, panel, char, x, y, width, height, **kwargs): Label.__init__(self, text=char, Width=width, Height=height, **kwargs) self.panel = panel self.panel.add(self, x, y)
def __init__(self, *args, **kwargs): self.leds = [] Label.__init__(self, *args, **kwargs)
def __init__(self, text=None, wordWrap=True, **kwargs): if not kwargs.has_key('Element'): kwargs['Element'] = DOM.createElement('p') if not kwargs.has_key('StyleName'): kwargs['StyleName'] = "errorField" Label.__init__(self, text, wordWrap, **kwargs)