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/Unsupervised/OWNxExplorerQwt.py

    r10082 r10466  
    10751075 
    10761076        filename = QFileDialog.getSaveFileName(self, 'Save Network File', '', 'NetworkX graph as Python pickle (*.gpickle)\nPajek network (*.net)\nGML network (*.gml)') 
     1077        fileanme = unicode(filename) 
    10771078        if filename: 
    10781079            fn = "" 
    1079             head, tail = os.path.splitext(str(filename)) 
     1080            head, tail = os.path.splitext(filename) 
    10801081            if not tail: 
    10811082                fn = head + ".net" 
    10821083            else: 
    1083                 fn = str(filename) 
     1084                fn = filename 
    10841085 
    10851086            for i in range(self.graph.number_of_nodes()): 
Note: See TracChangeset for help on using the changeset viewer.