本文整理汇总了Python中flumotion.component.base.baseadminnode.BaseAdminGtkNode.render方法的典型用法代码示例。如果您正苦于以下问题:Python BaseAdminGtkNode.render方法的具体用法?Python BaseAdminGtkNode.render怎么用?Python BaseAdminGtkNode.render使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类flumotion.component.base.baseadminnode.BaseAdminGtkNode
的用法示例。
在下文中一共展示了BaseAdminGtkNode.render方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: render
# 需要导入模块: from flumotion.component.base.baseadminnode import BaseAdminGtkNode [as 别名]
# 或者: from flumotion.component.base.baseadminnode.BaseAdminGtkNode import render [as 别名]
def render(self):
# FIXME: gladify
self.widget = gtk.Table(1, 2)
label = gtk.Label(_("Pattern:"))
self.widget.attach(label, 0, 1, 0, 1, 0, 0, 6, 6)
label.show()
self.combobox_pattern = fgtk.FProxyComboBox()
self.combobox_pattern.set_enum(VideoTestPattern)
self.pattern_changed_id = self.combobox_pattern.connect('changed',
self.cb_pattern_changed)
self.widget.attach(self.combobox_pattern, 1, 2, 0, 1, 0, 0, 6, 6)
self.combobox_pattern.show()
return BaseAdminGtkNode.render(self)
示例2: render
# 需要导入模块: from flumotion.component.base.baseadminnode import BaseAdminGtkNode [as 别名]
# 或者: from flumotion.component.base.baseadminnode.BaseAdminGtkNode import render [as 别名]
def render(self):
def returnWidget(res):
return self.siwidget
self.siwidget = ObjectList([Column('programnumber',
'Program Number', data_type=str),
Column('name', data_type=str),
Column('whatson', 'What\'s On', data_type=str)])
whatsontvcolumn = self.siwidget.get_treeview_column(\
self.siwidget.get_column_by_name('whatson'))
import pango
for renderer in whatsontvcolumn.get_cell_renderers():
renderer.set_property('wrap-width', 200)
renderer.set_property('wrap-mode', pango.WRAP_WORD)
self.widget = self.siwidget
d = BaseAdminGtkNode.render(self)
d.addCallback(returnWidget)
return d