本文整理汇总了Python中Renderers.msnplus_to_list方法的典型用法代码示例。如果您正苦于以下问题:Python Renderers.msnplus_to_list方法的具体用法?Python Renderers.msnplus_to_list怎么用?Python Renderers.msnplus_to_list使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Renderers
的用法示例。
在下文中一共展示了Renderers.msnplus_to_list方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: update_information
# 需要导入模块: import Renderers [as 别名]
# 或者: from Renderers import msnplus_to_list [as 别名]
def update_information(self):
'''update the information of the contact'''
if self.contact:
self.nick.set_markup(Renderers.msnplus_to_list(gobject.markup_escape_text(self.contact.display_name)))
self.mail.set_markup(self.contact.account)
self.message.set_markup(Renderers.msnplus_to_list(gobject.markup_escape_text(self.contact.message)))
self.status.set_from_file(
gui.theme.status_icons[self.contact.status])
if (self.contact.picture):
self.image.set_from_file(self.contact.picture)
else:
self.image.set_from_file(gui.theme.user)
if (self.contact.blocked):
self.blocked.set_markup(_('Yes'))
else:
self.blocked.set_markup(_('No'))
示例2: _set_text
# 需要导入模块: import Renderers [as 别名]
# 或者: from Renderers import msnplus_to_list [as 别名]
def _set_text(self, value):
'''set the value of text'''
self._text = value
self.label.set_markup(Renderers.msnplus_to_list(gobject.markup_escape_text(self._text)))
self.entry.set_text(self._text)
示例3: set_text
# 需要导入模块: import Renderers [as 别名]
# 或者: from Renderers import msnplus_to_list [as 别名]
def set_text(self, text):
'''set the text of the label'''
self.label.set_markup(Renderers.msnplus_to_list(gobject.markup_escape_text(text)))
if self.mozilla_like:
self.set_size_request(235, 18) # Empiric measures.
示例4: _set_information
# 需要导入模块: import Renderers [as 别名]
# 或者: from Renderers import msnplus_to_list [as 别名]
def _set_information(self, lines):
'''set the text on the information, lines is a tuple of size 3 with 3
strings that will be replaced on the template'''
self._information.set_markup(Renderers.msnplus_to_list(Header.INFO_TPL % lines))
示例5: set_text
# 需要导入模块: import Renderers [as 别名]
# 或者: from Renderers import msnplus_to_list [as 别名]
def set_text(self, text):
'''set the text of the label'''
self.label.set_markup(Renderers.msnplus_to_list(gobject.markup_escape_text(text)))
self.set_size_request(235, 18) # Firefox-like, at least here.