Ignore:
Timestamp:
05/17/13 20:27:25 (11 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Set the application version from the package info and display it in the splash screen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/main.py

    r11522 r11532  
    1616 
    1717from PyQt4.QtGui import QFont, QColor 
    18 from PyQt4.QtCore import Qt, QRect, QDir 
     18from PyQt4.QtCore import Qt, QDir 
    1919 
    2020from Orange import OrangeCanvas 
     
    2323from Orange.OrangeCanvas.application.outputview import TextStream, ExceptHook 
    2424 
    25 from Orange.OrangeCanvas.gui.splashscreen import SplashScreen, QPixmap 
     25from Orange.OrangeCanvas.gui.splashscreen import SplashScreen 
    2626from Orange.OrangeCanvas.config import cache_dir 
    2727from Orange.OrangeCanvas import config 
     
    198198 
    199199    if want_splash: 
    200         pm = QPixmap(pkg_resources.resource_filename( 
    201                         __name__, "icons/orange-splash-screen.png") 
    202                      ) 
    203         # Text rectangle in which to fit the message. 
    204         rect = QRect(88, 193, 200, 20) 
     200        pm, rect = config.splash_screen() 
    205201        splash_screen = SplashScreen(pixmap=pm, textRect=rect) 
    206202        splash_screen.setFont(QFont("Helvetica", 12)) 
Note: See TracChangeset for help on using the changeset viewer.