本文整理汇总了Python中pyasm.web.HtmlElement.p方法的典型用法代码示例。如果您正苦于以下问题:Python HtmlElement.p方法的具体用法?Python HtmlElement.p怎么用?Python HtmlElement.p使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyasm.web.HtmlElement
的用法示例。
在下文中一共展示了HtmlElement.p方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_div_for_department_instructions
# 需要导入模块: from pyasm.web import HtmlElement [as 别名]
# 或者: from pyasm.web.HtmlElement import p [as 别名]
def get_div_for_department_instructions(self, department_instructions_sobject):
department_instructions_div = DivWdg()
department_instructions_div.add(HtmlElement.h4(department_instructions_sobject.get('name')))
department_instructions_div.add(HtmlElement.p(department_instructions_sobject.get('instructions_text')))
return department_instructions_div
示例2: get_page_widget
# 需要导入模块: from pyasm.web import HtmlElement [as 别名]
# 或者: from pyasm.web.HtmlElement import p [as 别名]
def get_page_widget(self):
div = DivWdg()
div.add_style("font-size: 1.5em")
div.add_style("text-align: left")
div.add_style("border-width: 1px")
div.add_style("border-style: solid")
div.add_style("padding: 10px")
div.add_style("width: 80%")
div.center()
div.add( HtmlElement.p("We have detected that you are running Windows Internet Explorer") )
div.add(HtmlElement.p("At present, we have chosen not to support Windows Internet Explorer") )
div.add(HtmlElement.p("TACTIC is a complex web application and we comply to W3C standards. Many browsers suport these standards. However, Internet Explorer does not. So in order to provide you with the best user experience, we strongly recommend you use one of the following browsers: Firefox or any Mozilla base browser, Safari, etc."))
return div
示例3: setup_next_example
# 需要导入模块: from pyasm.web import HtmlElement [as 别名]
# 或者: from pyasm.web.HtmlElement import p [as 别名]
def setup_next_example(my, div, msg):
my.example_count += 1
div.add( '<br/>' )
div.add( '<hr>' )
if msg:
title = HtmlElement.p()
title.add_looks( "fnt_title_3" )
title.add( "Example #%s" % my.example_count )
description = HtmlElement.p()
description.add_looks( "fnt_text" )
description.add( msg )
div.add( title )
div.add( description )
div.add( '<br/>' )