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

    r9671 r10466  
    540540        qname = QFileDialog.getSaveFileName(self, "Save Projections",  os.path.join(self.lastSaveDirName, filename), "Interesting projections (*.proj)") 
    541541        if qname.isEmpty(): return 
    542         name = str(qname) 
     542        name = unicode(qname) 
    543543 
    544544        self.lastSaveDirName = os.path.split(name)[0] 
     
    563563            name = QFileDialog.getOpenFileName(self, "Open Projections", self.lastSaveDirName, "Interesting projections (*.proj)") 
    564564            if name.isEmpty(): return 
    565             name = str(name) 
     565            name = unicode(name) 
    566566 
    567567        dirName, shortFileName = os.path.split(name) 
     
    907907        else: 
    908908            startfile = self.recentGeneSets[0] 
    909         filename = str(QFileDialog.getOpenFileName(None, 'Open Gene Set File', startfile, 'Gene set files (*.gmt)\nAll files(*.*)')) 
     909        filename = unicode(QFileDialog.getOpenFileName(None, 'Open Gene Set File', startfile, 'Gene set files (*.gmt)\nAll files(*.*)')) 
    910910        if filename == "": return 
    911911        if filename in self.recentGeneSets: self.recentGeneSets.remove(filename) 
     
    12011201        else: 
    12021202            startfile = self.recentGeneSets[0] 
    1203         filename = str(QFileDialog.getOpenFileName(None,'Open Gene Set File', startfile, 'Gene set files (*.gmt)\nAll files(*.*)')) 
     1203        filename = unicode(QFileDialog.getOpenFileName(None,'Open Gene Set File', startfile, 'Gene set files (*.gmt)\nAll files(*.*)')) 
    12041204        if filename == "": return 
    12051205        if filename in self.recentGeneSets: self.recentGeneSets.remove(filename) 
Note: See TracChangeset for help on using the changeset viewer.