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/OWNxFile.py

    r9671 r10466  
    396396                startfile = self.recentFiles[0] 
    397397                 
    398         filename = str(QFileDialog.getOpenFileName(self, 'Open a Network File', startfile, "All network files (*.gpickle *.net *.gml)\nNetworkX graph as Python pickle (*.gpickle)\nPajek files (*.net)\nGML files (*.gml)\nAll files (*.*)")) 
     398        filename = unicode(QFileDialog.getOpenFileName(self, 'Open a Network File', startfile, "All network files (*.gpickle *.net *.gml)\nNetworkX graph as Python pickle (*.gpickle)\nPajek files (*.net)\nGML files (*.gml)\nAll files (*.*)")) 
    399399         
    400400        if filename == "": return 
     
    421421            startfile = self.recentDataFiles[0] 
    422422                 
    423         filename = str(QFileDialog.getOpenFileName(self, 'Open a Vertices Data File', startfile, 'Data files (*.tab)\nAll files(*.*)')) 
     423        filename = unicode(QFileDialog.getOpenFileName(self, 'Open a Vertices Data File', startfile, 'Data files (*.tab)\nAll files(*.*)')) 
    424424     
    425425        if filename == "": return 
     
    446446            startfile = self.recentEdgesFiles[0] 
    447447                 
    448         filename = str(QFileDialog.getOpenFileName(self, 'Open a Edges Data File', startfile, 'Data files (*.tab)\nAll files(*.*)')) 
     448        filename = unicode(QFileDialog.getOpenFileName(self, 'Open a Edges Data File', startfile, 'Data files (*.tab)\nAll files(*.*)')) 
    449449     
    450450        if filename == "": return 
Note: See TracChangeset for help on using the changeset viewer.