Changeset 5040:9bdca707d199 in orange


Ignore:
Timestamp:
07/31/08 15:42:51 (6 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
0e0ff651d783a417c197dfd676bec1cd1c8a20f6
Message:
  • irrelevant changes (removed redundant comments...)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Data/OWFile.py

    r4968 r5040  
    3939        self.outputs = [("Examples", ExampleTable)] 
    4040 
    41         #set default settings 
    4241        self.recentFiles=["(none)"] 
    4342        self.symbolDC = "?" 
    4443        self.symbolDK = "~" 
    45         self.createNewOn = orange.Variable.MakeStatus.NoRecognizedValues 
     44        self.createNewOn = 1 
    4645        self.domain = None 
    4746        self.loadedFile = "" 
    4847        self.showAdvanced = 0 
    49         #get settings from the ini file, if they exist 
    5048        self.loadSettings() 
    5149 
     
    6967        hbox = OWGUI.indentedBox(box) 
    7068        OWGUI.lineEdit(hbox, self, "symbolDC", "Don't care:", labelWidth=70, orientation="horizontal", tooltip="Default values: empty fields (space), '?' or 'NA'") 
    71         #OWGUI.separator(hbox, 16, 0) 
    7269        OWGUI.lineEdit(hbox, self, "symbolDK", "Don't know:", labelWidth=70, orientation="horizontal", tooltip="Default values: '~' or '*'") 
    7370 
     
    8784            self.openFile(self.recentFiles[0], 0, self.symbolDK, self.symbolDC) 
    8885 
    89         # connecting GUI to code 
    9086        self.connect(self.filecombo, SIGNAL('activated(int)'), self.selectFile) 
    9187         
     
    9591        QTimer.singleShot(0, self.adjustSize) 
    9692 
    97     # set the file combo box 
    9893    def setFileList(self): 
    9994        self.filecombo.clear() 
     
    120115        self.symbolDC, self.symbolDK = context.symbolDC, context.symbolDK 
    121116 
    122     # user selected a file from the combo box 
    123117    def selectFile(self, n): 
    124118        if n < len(self.recentFiles) : 
     
    133127            self.openFile(self.recentFiles[0], 0, self.symbolDK, self.symbolDC) 
    134128 
    135     # user pressed the "..." button to manually select a file to load 
    136129    def browseFile(self, inDemos=0): 
    137130        "Display a FileDialog and select a file" 
Note: See TracChangeset for help on using the changeset viewer.