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/Prototypes/OWItemsetViz.py

    r9671 r10466  
    504504    def saveNetwork(self): 
    505505        filename = QFileDialog.getSaveFileName(QString.null,'PAJEK networks (*.net)') 
     506        filename = unicode(filename) 
    506507        if filename: 
    507508            fn = "" 
    508             head, tail = os.path.splitext(str(filename)) 
     509            head, tail = os.path.splitext(filename) 
    509510            if not tail: 
    510511                fn = head + ".net" 
    511512            else: 
    512                 fn = str(filename) 
     513                fn = filename 
    513514             
    514515            self.graph.visualizer.saveNetwork(fn) 
Note: See TracChangeset for help on using the changeset viewer.