本文整理汇总了Python中pyasm.web.Table.hr方法的典型用法代码示例。如果您正苦于以下问题:Python Table.hr方法的具体用法?Python Table.hr怎么用?Python Table.hr使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyasm.web.Table
的用法示例。
在下文中一共展示了Table.hr方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_display
# 需要导入模块: from pyasm.web import Table [as 别名]
# 或者: from pyasm.web.Table import hr [as 别名]
def get_display(my):
widget = DivWdg()
table = Table()
table.add_attr('class','client_deliverable_wdg')
table.add_row()
table2 = Table()
table2.add_style('border-spacing: 5px;')
table2.add_style('border-collapse: separate;')
table2.add_row()
c1 = table2.add_cell('Order Code:')
c1.add_attr('nowrap','nowrap')
tb1 = TextWdg('order_code')
tb1.add_attr('id','order_code')
tb1.add_attr('disabled','disabled')
tb1.set_value(my.sob['order_code'])
table2.add_cell(tb1)
c1 = table2.add_cell('PO Number:')
c1.add_attr('nowrap','nowrap')
tb1 = TextWdg('po_number')
tb1.add_attr('id','po_number')
tb1.add_attr('disabled','disabled')
tb1.set_value(my.sob['po_number'])
table2.add_cell(tb1)
c1 = table2.add_cell('Title Code:')
c1.add_attr('nowrap','nowrap')
tb1 = TextWdg('title_code')
tb1.add_attr('id','title_code')
tb1.add_attr('disabled','disabled')
tb1.set_value(my.sob['title_code'])
table2.add_cell(tb1)
c1 = table2.add_cell('Platform:')
c1.add_attr('nowrap','nowrap')
tb1 = TextWdg('platform')
tb1.add_attr('id','platform')
tb1.add_attr('disabled','disabled')
tb1.set_value(my.sob['platform'])
table2.add_cell(tb1)
c1 = table2.add_cell('Client:')
c1.add_attr('nowrap','nowrap')
tb1 = TextWdg('client_name')
tb1.add_attr('id','client_name')
tb1.add_attr('disabled','disabled')
tb1.set_value(my.sob['client_name'])
table2.add_cell(tb1)
table2.add_row()
table2.add_cell(table2.hr())
table2.add_row()
c1 = table2.add_cell('Title Source(s):')
c1.add_attr('nowrap','nowrap')
tb1 = TextWdg('original_source_code')
tb1.add_attr('id','original_source_code')
tb1.add_attr('disabled','disabled')
tb1.add_style('width','200px')
tb1.set_value(my.sob['original_source_code'])
c2 = table2.add_cell(tb1)
c2.add_attr('colspan','2')
c1 = table2.add_cell('Title Source Barcodes(s):')
c1.add_attr('nowrap','nowrap')
tb1 = TextWdg('original_source_barcode')
tb1.add_attr('id','original_source_barcode')
tb1.add_attr('disabled','disabled')
tb1.add_style('width','200px')
tb1.set_value(my.sob['original_source_barcode'])
c2 = table2.add_cell(tb1)
c2.add_attr('colspan','2')
c1 = table2.add_cell('Ancestors:')
c1.add_attr('nowrap','nowrap')
tb1 = TextWdg('ancestors')
tb1.add_attr('id','ancestors')
tb1.add_attr('disabled','disabled')
tb1.add_style('width','300px')
tb1.set_value(my.sob['ancestors'])
c2 = table2.add_cell(tb1)
c2.add_attr('colspan','3')
table2.add_row()
table2.add_cell(table2.hr())
table2.add_row()
c1 = table2.add_cell('Destination:')
c1.add_attr('nowrap','nowrap')
destination_sel = SelectWdg('destination')
destination_sel.add_attr('id','destination')
destination_sel.append_option('--Select--','')
for c in my.all_clients:
destination_sel.append_option(c.get('name'),c.get('name'))
if my.sob.get('destination') == None:
my.sob['destination'] = ''
destination_sel.set_value(my.sob.get('destination'))
table2.add_cell(destination_sel)
#.........这里部分代码省略.........