Changeset 3694:70b56fca0824 in orange


Ignore:
Timestamp:
05/27/07 18:39:23 (7 years ago)
Author:
Gregor <Gregor@…>
Branch:
default
Convert:
02d316e7a207520d727fdceb05ffba6b8ead6098
Message:
  • small bug fix
Location:
orange/OrangeCanvas
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeCanvas/orngCanvas.pyw

    r3639 r3694  
    532532 
    533533    def menuItemSaveOutputWindow(self): 
    534         qname = QFileDialog.getSaveFileName( self.saveSchemaDir + "/Output.htm", "HTML Document (*.htm)", self, "", "Save Output To File") 
     534        qname = QFileDialog.getSaveFileName( self.settings["saveSchemaDir"] + "/Output.htm", "HTML Document (*.htm)", self, "", "Save Output To File") 
    535535        if qname.isEmpty(): return 
    536536        name = str(qname) 
  • orange/OrangeCanvas/orngDoc.py

    r3667 r3694  
    501501                tempWidget = self.addWidgetByFileName(name, int(widget.getAttribute("xPos")), int(widget.getAttribute("yPos")), widget.getAttribute("caption"), activateSettings = 0) 
    502502                if not tempWidget: 
    503                     QMessageBox.information(self,'Orange Canvas','Unable to create instance of widget \"'+ name + '\"',  QMessageBox.Ok + QMessageBox.Default) 
     503                    QMessageBox.information(self,'Orange Canvas','Unable to create an instance of the \"'+ name + '\" widget',  QMessageBox.Ok + QMessageBox.Default) 
    504504                else: 
    505505                    if tempWidget.caption in settingsDict.keys(): 
     
    518518                outWidget = self.getWidgetByCaption(outCaption) 
    519519                if inWidget == None or outWidget == None: 
    520                     print "Unable to create a line due to invalid widget name. Try reinstalling widgets." 
     520                    print 'Unable to create a line between widgets "%s" and "%s" due to a missing widget.' % (outCaption, inCaption) 
    521521                    continue 
    522522 
  • orange/OrangeCanvas/orngSignalManager.py

    r3638 r3694  
    105105        #sys.stdout = self.stdout 
    106106 
    107     def __del__(self): 
    108         if type(self) == type(None): 
    109             return 
    110         if self.debugFile: 
    111             self.debugFile.close() 
    112         sys.stderr = self.stderr 
    113         #sys.stdout = self.stdout 
     107#    def __del__(self): 
     108#        if not self or type(self) == type(None): 
     109#            return 
     110#        if self.debugFile: 
     111#            self.debugFile.close() 
     112#        sys.stderr = self.stderr 
     113#        #sys.stdout = self.stdout 
    114114 
    115115    # 
Note: See TracChangeset for help on using the changeset viewer.