review_gui_helper.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:x-mario-center 作者: fossasia 项目源码 文件源码
def _setup_details(self, widget, app, iconname, version, display_name):
        # icon shazam
        try:
            icon = self.icons.load_icon(iconname, self.APP_ICON_SIZE, 0)
        except:
            icon = self.icons.load_icon(Icons.MISSING_APP, self.APP_ICON_SIZE,
                0)
        self.review_appicon.set_from_pixbuf(icon)

        # title
        app = utf8(gettext.dgettext("app-install-data", app.name))
        version = utf8(version)
        self.review_title.set_markup(
            '<b><span size="x-large">%s</span></b>\n%s' % (app, version))

        # review label
        self.review_label.set_markup(_('Review by: %s') %
            display_name.encode('utf8'))

        # review summary label
        self.review_summary_label.set_markup(_('Summary:'))

        #rating label
        self.rating_label.set_markup(_('Rating:'))
        #error detail link label
        self.label_expander.set_markup('<small><u>%s</u></small>' %
            (_('Error Details')))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号