Ignore:
Timestamp:
04/10/12 20:14:52 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Added back 'built on' string in the About dialog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/orngDlgs.py

    r10581 r10778  
    14061406         
    14071407        import orngEnviron 
     1408        import Orange 
     1409        import re 
    14081410        logoImage = QPixmap(os.path.join(orngEnviron.directoryNames["canvasDir"], "icons", "splash.png")) 
    14091411        logo = OWGUI.widgetLabel(self, "") 
     
    14121414        OWGUI.widgetLabel(self, '<p align="center"><h2>Orange</h2></p>')  
    14131415         
     1416        default_version_str = Orange.__version__ 
     1417        built_on = re.findall("\((.*?)\)", Orange.orange.version) 
     1418        if built_on: 
     1419            built_on_str = " (built on " + built_on[0].split(",")[-1] + ")" 
     1420        else: 
     1421            built_on_str = "" 
    14141422        try: 
    14151423            import Orange.version as version 
    14161424            short_version = version.short_version 
    14171425            hg_revision = version.hg_revision 
    1418             OWGUI.widgetLabel(self, '<p align="center">version %s</p>' % (short_version)) 
     1426            OWGUI.widgetLabel(self, '<p align="center">version %s</p>' % (short_version + built_on_str)) 
    14191427            if not version.release: 
    14201428                OWGUI.widgetLabel(self, '<p align="center">(hg revision %s)</p>' % (hg_revision)) 
    14211429        except ImportError: 
    1422             pass 
     1430            OWGUI.widgetLabel(self, '<p align="center">version %s</p>' % (default_version_str + built_on_str)) 
    14231431        OWGUI.widgetLabel(self, "" ) 
    14241432        #OWGUI.button(self, self, "Close", callback = self.accept) 
Note: See TracChangeset for help on using the changeset viewer.