Changeset 7909:c30798d7853f in orange


Ignore:
Timestamp:
05/17/11 14:46:10 (3 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
c94aa060c63896f12a19c433d23423a2542ae55d
Message:
 
Location:
orange/OrangeWidgets/Prototypes
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Prototypes/OWModelEmbedder.py

    r7141 r7909  
    44<contact>Miha Stajdohar (miha.stajdohar(@at@)gmail.com)</contact> 
    55<icon>icons/DistanceFile.png</icon> 
    6 <priority>1100</priority> 
     6<priority>1120</priority> 
    77""" 
    88 
  • orange/OrangeWidgets/Prototypes/OWModelsFile.py

    r7165 r7909  
    44<contact>Miha Stajdohar (miha.stajdohar(@at@)gmail.com)</contact> 
    55<icon>icons/DistanceFile.png</icon> 
    6 <priority>1100</priority> 
     6<priority>0</priority> 
    77""" 
    88 
     
    6464            self.origFileIndex = 0 
    6565        else: 
    66             fnOrigData = self.origRecentFiles[0] 
     66            if len(self.origRecentFiles) > 0: 
     67                fnOrigData = self.origRecentFiles[0] 
     68            else: 
     69                fnOrigData = '' 
    6770 
    6871        self.origFilecombo.clear() 
     
    7073            self.origFilecombo.addItem(os.path.split(file)[1]) 
    7174         
    72         if os.path.exists(fnOrigData): 
     75        if os.path.isfile(fnOrigData): 
    7376            self.originalData = orange.ExampleTable(fnOrigData) 
    7477         
     
    110113            if os.path.exists(dstFile + ".tab"): 
    111114                self.data = orange.ExampleTable(dstFile + ".tab") 
     115                self.matrix.items = self.data 
    112116            else: 
    113117                warning += "ExampleTable %s not found!\n" % (dstFile + ".tab") 
Note: See TracChangeset for help on using the changeset viewer.