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

    r9671 r10466  
    583583            qname = QFileDialog.getSaveFileName( self.lastSaveDirName + "/" + filename, "Interesting clusters (*.clu)", self, "", "Save Clusters") 
    584584            if qname.isEmpty(): return 
    585             name = str(qname) 
     585            name = unicode(qname) 
    586586        else: 
    587587            name = filename 
     
    620620        name = QFileDialog.getOpenFileName( self.lastSaveDirName, "Interesting clusters (*.clu)", self, "", "Open Clusters") 
    621621        if name.isEmpty(): return 
    622         name = str(name) 
     622        name = unicode(name) 
    623623 
    624624        dirName, shortFileName = os.path.split(name) 
     
    692692 
    693693    def saveToFileAccept(self): 
    694         fileName = str(QFileDialog.getSaveFileName("Graph","Portable Network Graphics (*.PNG);;Windows Bitmap (*.BMP);;Graphics Interchange Format (*.GIF)", None, "Save to...", "Save to...")) 
     694        fileName = unicode(QFileDialog.getSaveFileName("Graph","Portable Network Graphics (*.PNG);;Windows Bitmap (*.BMP);;Graphics Interchange Format (*.GIF)", None, "Save to...", "Save to...")) 
    695695        if fileName == "": return 
    696696        (fil,ext) = os.path.splitext(fileName) 
Note: See TracChangeset for help on using the changeset viewer.