Exemple #1
0
 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')
Exemple #2
0
 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)
Exemple #3
0
 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)
Exemple #4
0
 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, 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")
Exemple #6
0
 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")
Exemple #7
0
 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')
Exemple #8
0
 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')
Exemple #9
0
    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)
Exemple #10
0
 def __init__(self):
     Label.__init__(self, Element=DOM.createElement('div'))
     self.setText("Drag me!")
     DragWidget.__init__(self)
     self.setStyleName('dragme1')
Exemple #11
0
 def __init__(self):
     Label.__init__(self, Element=DOM.createElement('div'))
     DropWidget.__init__(self)
     self.setText("Drop here!")
     self.setStyleName('drophere')
Exemple #12
0
 def __init__(self):
     Label.__init__(self, Element=DOM.createElement('div'))
     self.setText("Drag me!")
     DragWidget.__init__(self)
     self.setStyleName('dragme1')
Exemple #13
0
 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)
Exemple #14
0
 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)
Exemple #15
0
 def __init__(self, text):
     Label.__init__(self, text)
     self.setStyleName('dragme2')
     self.setStyleAttribute('position', 'absolute')
Exemple #16
0
 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)
Exemple #17
0
 def __init__(self, text):
     Label.__init__(self, text)
     self.setStyleName('dragme2')
     self.setStyleAttribute('position', 'absolute')
Exemple #18
0
 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)
Exemple #19
0
 def __init__(self, *args, **kwargs):
     self.leds = []
     Label.__init__(self, *args, **kwargs)
Exemple #20
0
 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)
Exemple #21
0
 def __init__(self):
     Label.__init__(self, Element=DOM.createElement('div'))
     DropWidget.__init__(self)
     self.setText("Drop here!")
     self.setStyleName('drophere')
Exemple #22
0
 def __init__(self, *args, **kwargs):
     self.leds = []
     Label.__init__(self, *args, **kwargs)