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

    r9671 r10466  
    358358                startfile = self.recentFiles[0] 
    359359                 
    360         filename = str(QFileDialog.getOpenFileName(self, 'Open a Network File', startfile, "Pajek files (*.net)\nGML files (*.gml)\nAll files (*.*)")) 
     360        filename = unicode(QFileDialog.getOpenFileName(self, 'Open a Network File',  
     361                    startfile, "Pajek files (*.net)\nGML files (*.gml)\nAll files (*.*)")) 
    361362         
    362363        if filename == "": return 
     
    383384            startfile = self.recentDataFiles[0] 
    384385                 
    385         filename = str(QFileDialog.getOpenFileName(self, 'Open a Vertices Data File', startfile, 'Data files (*.tab)\nAll files(*.*)')) 
     386        filename = unicode(QFileDialog.getOpenFileName(self, 'Open a Vertices Data File', startfile, 'Data files (*.tab)\nAll files(*.*)')) 
    386387     
    387388        if filename == "": return 
     
    408409            startfile = self.recentEdgesFiles[0] 
    409410                 
    410         filename = str(QFileDialog.getOpenFileName(self, 'Open a Edges Data File', startfile, 'Data files (*.tab)\nAll files(*.*)')) 
     411        filename = unicode(QFileDialog.getOpenFileName(self, 'Open a Edges Data File', startfile, 'Data files (*.tab)\nAll files(*.*)')) 
    411412     
    412413        if filename == "": return 
Note: See TracChangeset for help on using the changeset viewer.