Exemplo n.º 1
0
    def __init__(self, parent):
        wal.VPanel.__init__(self, parent)
        from uc2 import libimg, libpango, libcairo, cms
        import reportlab

        data = [[_('Component'), _('Version')]]
        mark = '' if not uc2const.BUILD else ' build %s' % uc2const.BUILD
        uc_ver = '%s %s%s' % (uc2const.VERSION, uc2const.REVISION, mark)
        data.append(['Python', sys.version])
        data.append(['wxWidgets', wal.VERSION])
        data.append(['UniConvertor', uc_ver])
        data.append(['LCMS', cms.libcms.get_version()])
        data.append(['Cairo', libcairo.get_version()[0]])
        data.append(['pycairo', libcairo.get_version()[1]])
        data.append(['Pillow', libimg.get_version()])
        data.append(['ImageMagick', libimg.get_magickwand_version()[0]])
        data.append(['Pango', libpango.get_version()])
        data.append(['Reportlab', reportlab.Version])

        if not wal.IS_MSW:
            import cups
            try:
                cups.require('10.0')
            except RuntimeError as e:
                data.append(['pycups', str(e).split()[-1]])

        vp = wal.VPanel(self)
        vp.set_bg(wal.UI_COLORS['border'])
        slist = wal.ReportList(vp, data, border=False)
        vp.pack(slist, expand=True, fill=True, padding_all=1)
        self.pack(vp, expand=True, fill=True, padding_all=5)
        slist.set_column_width(0, wal.LIST_AUTOSIZE)
Exemplo n.º 2
0
 def __init__(self, app, parent):
     wal.VPanel.__init__(self, parent)
     from uc2 import libimg, libpango
     import reportlab
     data = [[_('Component'), _('Version')]] + app.appdata.components
     data.append(['ImageMagick', libimg.get_magickwand_version()[0]])
     data.append(['Pango', libpango.get_version()])
     data.append(['Reportlab', reportlab.Version])
     slist = wal.ReportList(self, data, border=False)
     self.pack(slist, expand=True, fill=True, padding=5)
     slist.set_column_width(0, wal.LIST_AUTOSIZE)
Exemplo n.º 3
0
def show_parts(appdata):
    echo()
    mark = '' if not appdata.build \
        else ' build %s' % appdata.build
    app_name = '%s %s%s%s' % (appdata.app_name, appdata.version,
                              appdata.revision, mark)
    echo('%s components:\n' % app_name)
    part = ''
    try:
        part = 'Python'
        _show_part(part, sys.version)

        part = 'LCMS'
        from uc2 import cms
        _show_part(part, cms.libcms.get_version())

        part = 'Cairo'
        from uc2 import libcairo
        _show_part(part, libcairo.get_version()[0])

        part = 'pycairo'
        _show_part(part, libcairo.get_version()[1])

        part = 'Pillow'
        from uc2 import libimg
        _show_part(part, libimg.get_version())

        part = 'ImageMagick'
        _show_part(part, libimg.get_magickwand_version()[0])

        part = 'Pango'
        from uc2 import libpango
        _show_part(part, libpango.get_version())

        part = 'Reportlab'
        import reportlab
        _show_part(part, reportlab.Version)

    except Exception as e:
        _show_part(part, 'FAIL')
        echo('Reason: %s' % str(e))
    echo()
Exemplo n.º 4
0
    def __init__(self, parent):
        wal.VPanel.__init__(self, parent)
        from uc2 import libimg, libpango, libcairo
        import reportlab

        data = [[_('Component'), _('Version')]]
        uc_ver = '%s %s' % (uc2const.VERSION, uc2const.REVISION)
        data.append(['Python', sys.version])
        data.append(['wxWidgets', wal.VERSION])
        data.append(['UniConvertor', uc_ver])
        data.append(['Cairo', libcairo.get_version()[0]])
        data.append(['pycairo', libcairo.get_version()[1]])
        data.append(['Pillow', libimg.get_version()])
        data.append(['ImageMagick', libimg.get_magickwand_version()[0]])
        data.append(['Pango', libpango.get_version()])
        data.append(['Reportlab', reportlab.Version])

        slist = wal.ReportList(self, data, border=False)
        self.pack(slist, expand=True, fill=True, padding=5)
        slist.set_column_width(0, wal.LIST_AUTOSIZE)