Ignore:
Timestamp:
03/08/12 12:34:02 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
rebase_source:
359355b6e3f6649dbd100ad0730428030d13b649
Message:

Added unicode filename support for the rest of save/load widget dialogs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/OWGUI.py

    r9873 r10466  
    955955            import os 
    956956            iconDir = os.path.join(os.path.dirname(__file__), "icons") 
    957             if type(pixmap) == str: 
     957            if isinstance(pixmap, basestring): 
    958958                if os.path.exists(pixmap): 
    959959                    name = pixmap 
     
    10101010            import os 
    10111011            iconDir = os.path.join(os.path.dirname(__file__), "icons") 
    1012             if type(pixmap) == str: 
     1012            if isinstance(pixmap, basestring): 
    10131013                if os.path.exists(pixmap): 
    10141014                    name = pixmap 
Note: See TracChangeset for help on using the changeset viewer.