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

    r9671 r10466  
    5858            lastPath = "." 
    5959             
    60         fn = str(QFileDialog.getSaveFileName(self, "Save Distance Matrix File", lastPath, "Distance files (*.dst)\nSymMatrix files (*.sym)\nAll files (*.*)")) 
     60        fn = unicode(QFileDialog.getSaveFileName(self, "Save Distance Matrix File", lastPath, "Distance files (*.dst)\nSymMatrix files (*.sym)\nAll files (*.*)")) 
    6161         
    6262        if not fn or not os.path.split(fn)[1]: 
     
    8282        self.error() 
    8383        if self.data is not None: 
    84             combotext = str(self.filecombo.currentText()) 
     84            combotext = unicode(self.filecombo.currentText()) 
    8585            if combotext == "(none)": 
    8686                QMessageBox.information( None, "Error saving data", "Unable to save data. Select first a file name by clicking the '...' button.", QMessageBox.Ok + QMessageBox.Default) 
Note: See TracChangeset for help on using the changeset viewer.