コード例 #1
0
ファイル: main.py プロジェクト: rp3d/ciclop
    def onAbout(self, event):
        """ """
        info = wx.AboutDialogInfo()
        icon = wx.Icon(resources.getPathForImage("horus.ico"), wx.BITMAP_TYPE_ICO)
        info.SetIcon(icon)
        info.SetName(u'Horus')
        info.SetVersion(VERSION)
        techDescription = ''
        if os.path.isfile(resources.getPathForVersion()):
            with open(resources.getPathForVersion(), 'r') as f:
              techDescription = '\n' + f.read().replace('\n','')
        info.SetDescription(_('Horus is an Open Source 3D Scanner manager') + techDescription)
        info.SetCopyright(u'(C) 2014-2015 Mundo Reader S.L.')
        info.SetWebSite(u'http://www.bq.com')
        info.SetLicence("""Horus is free software; you can redistribute
it and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.

Horus is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details. You should have
received a copy of the GNU General Public License along with File Hunter;
if not, write to the Free Software Foundation, Inc., 59 Temple Place,
Suite 330, Boston, MA  02111-1307  USA""")
        info.AddDeveloper(u'Jesús Arroyo, Irene Sanz')
        info.AddDocWriter(u'Jesús Arroyo, Ángel Larrañaga')
        info.AddArtist(u'Jesús Arroyo, Nestor Toribio')
        info.AddTranslator(u'Jesús Arroyo, Irene Sanz, Alexandre Galode, Natasha da Silva')

        wx.AboutBox(info)
コード例 #2
0
ファイル: main.py プロジェクト: wanglch/ciclop
    def onAbout(self, event):
        """ """
        info = wx.AboutDialogInfo()
        icon = wx.Icon(resources.getPathForImage("horus.ico"),
                       wx.BITMAP_TYPE_ICO)
        info.SetIcon(icon)
        info.SetName(u'Horus')
        info.SetVersion(VERSION)
        techDescription = ''
        if os.path.isfile(resources.getPathForVersion()):
            with open(resources.getPathForVersion(), 'r') as f:
                techDescription = '\n' + f.read().replace('\n', '')
        info.SetDescription(
            _('Horus is an Open Source 3D Scanner manager') + techDescription)
        info.SetCopyright(u'(C) 2014-2015 Mundo Reader S.L.')
        info.SetWebSite(u'http://www.bq.com')
        info.SetLicence("""Horus is free software; you can redistribute
it and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.

Horus is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details. You should have
received a copy of the GNU General Public License along with File Hunter;
if not, write to the Free Software Foundation, Inc., 59 Temple Place,
Suite 330, Boston, MA  02111-1307  USA""")
        info.AddDeveloper(u'Jesús Arroyo, Irene Sanz')
        info.AddDocWriter(u'Jesús Arroyo, Ángel Larrañaga')
        info.AddArtist(u'Jesús Arroyo, Nestor Toribio')
        info.AddTranslator(
            u'Jesús Arroyo, Irene Sanz, Alexandre Galode, Natasha da Silva')

        wx.AboutBox(info)
コード例 #3
0
ファイル: version.py プロジェクト: javivi001/horus
def _getVersionData(index, _type='local'):
    ## Version Build GitHub
    try:
        if _type is 'local':
            if os.path.isfile(resources.getPathForVersion()):
                with open(resources.getPathForVersion(), 'r') as f:
                    content = f.read()
        elif _type is 'remote':
            f = urllib2.urlopen('http://storage.googleapis.com/bq-horus/releases/version')
            content = f.read()
        data = content.split('\n')
        return data[index]
    except:
        return ''