Пример #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')
Пример #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)
Пример #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)
Пример #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)
Пример #5
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")
Пример #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")
Пример #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')
Пример #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')
Пример #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)
Пример #10
0
 def __init__(self):
     Label.__init__(self, Element=DOM.createElement('div'))
     self.setText("Drag me!")
     DragWidget.__init__(self)
     self.setStyleName('dragme1')
Пример #11
0
 def __init__(self):
     Label.__init__(self, Element=DOM.createElement('div'))
     DropWidget.__init__(self)
     self.setText("Drop here!")
     self.setStyleName('drophere')
Пример #12
0
 def __init__(self):
     Label.__init__(self, Element=DOM.createElement('div'))
     self.setText("Drag me!")
     DragWidget.__init__(self)
     self.setStyleName('dragme1')
Пример #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)
Пример #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)
Пример #15
0
 def __init__(self, text):
     Label.__init__(self, text)
     self.setStyleName('dragme2')
     self.setStyleAttribute('position', 'absolute')
Пример #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)
Пример #17
0
 def __init__(self, text):
     Label.__init__(self, text)
     self.setStyleName('dragme2')
     self.setStyleAttribute('position', 'absolute')
Пример #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)
Пример #19
0
 def __init__(self, *args, **kwargs):
     self.leds = []
     Label.__init__(self, *args, **kwargs)
Пример #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)
Пример #21
0
 def __init__(self):
     Label.__init__(self, Element=DOM.createElement('div'))
     DropWidget.__init__(self)
     self.setText("Drop here!")
     self.setStyleName('drophere')
Пример #22
0
 def __init__(self, *args, **kwargs):
     self.leds = []
     Label.__init__(self, *args, **kwargs)