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/application/aboutdialog.py

    r11122 r11532  
    66import pkg_resources 
    77 
    8 from PyQt4.QtGui import QDialog, QDialogButtonBox, QVBoxLayout, QLabel, QPixmap 
     8from PyQt4.QtGui import QDialog, QDialogButtonBox, QVBoxLayout, QLabel 
    99from PyQt4.QtCore import Qt 
    1010 
    11  
    12 import Orange 
    13 from Orange import OrangeCanvas 
     11from .. import config 
    1412 
    1513ABOUT_TEMPLATE = """\ 
     
    3634        label = QLabel(self) 
    3735 
    38         filename = pkg_resources.resource_filename( 
    39                         OrangeCanvas.__name__, 
    40                         "icons/orange-splash-screen.png") 
     36        pixmap, _ = config.splash_screen() 
    4137 
    42         label.setPixmap(QPixmap(filename)) 
     38        label.setPixmap(pixmap) 
     39 
    4340        layout.addWidget(label, Qt.AlignCenter) 
    4441 
Note: See TracChangeset for help on using the changeset viewer.