当前位置: 首页>>代码示例>>Python>>正文


Python HTML.__init__方法代码示例

本文整理汇总了Python中pyjamas.ui.HTML.HTML.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python HTML.__init__方法的具体用法?Python HTML.__init__怎么用?Python HTML.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pyjamas.ui.HTML.HTML的用法示例。


在下文中一共展示了HTML.__init__方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from pyjamas.ui.HTML import HTML [as 别名]
# 或者: from pyjamas.ui.HTML.HTML import __init__ [as 别名]
 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()
开发者ID:vijayendra,项目名称:Puzzle-Game,代码行数:10,代码来源:Puzzle.py

示例2: __init__

# 需要导入模块: from pyjamas.ui.HTML import HTML [as 别名]
# 或者: from pyjamas.ui.HTML.HTML import __init__ [as 别名]
 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)
开发者ID:gonvaled,项目名称:pyjs,代码行数:12,代码来源:Select2TaggingComponent.py

示例3: __init__

# 需要导入模块: from pyjamas.ui.HTML import HTML [as 别名]
# 或者: from pyjamas.ui.HTML.HTML import __init__ [as 别名]
    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")
开发者ID:lukeorland,项目名称:Choban,代码行数:17,代码来源:BIO.py

示例4: __init__

# 需要导入模块: from pyjamas.ui.HTML import HTML [as 别名]
# 或者: from pyjamas.ui.HTML.HTML import __init__ [as 别名]
 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)
开发者ID:anthonyrisinger,项目名称:translate-pyjs-org.appspot.com,代码行数:6,代码来源:InlineHTML.py

示例5: __init__

# 需要导入模块: from pyjamas.ui.HTML import HTML [as 别名]
# 或者: from pyjamas.ui.HTML.HTML import __init__ [as 别名]
    def __init__(self, html=None, wordWrap=True, **kwargs):
        HTML.__init__(self, html, wordWrap, **kwargs)

        self.setHTML('Surfboards can be cool.')
开发者ID:anandology,项目名称:pyjamas,代码行数:6,代码来源:Navigate.py

示例6: __init__

# 需要导入模块: from pyjamas.ui.HTML import HTML [as 别名]
# 或者: from pyjamas.ui.HTML.HTML import __init__ [as 别名]
 def __init__(self, text):
     HTML.__init__(self, text)
     ClickHandler.__init__(self, preventDefault=True)
     self.addClickListener(self)        
开发者ID:brodybits,项目名称:pyjs,代码行数:6,代码来源:Override.py

示例7: __init__

# 需要导入模块: from pyjamas.ui.HTML import HTML [as 别名]
# 或者: from pyjamas.ui.HTML.HTML import __init__ [as 别名]
 def __init__(self, html=None, wordWrap=True, Element=None, **kwargs):
     self.converter = getShowdown()
     HTML.__init__(self, html, wordWrap, Element, **kwargs)
开发者ID:jaredly,项目名称:pyjamas,代码行数:5,代码来源:Wiki.py


注:本文中的pyjamas.ui.HTML.HTML.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。