Changeset 1525:669aad39c027 in orange-bioinformatics


Ignore:
Timestamp:
12/15/11 11:31:55 (2 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
3e5c8daed3e293b597a3741b627e4dfdc948de44
Message:

Added save graph button.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • widgets/OWKEGGPathwayBrowser.py

    r1462 r1525  
    174174                                                   ContextField("useAttrNames", DomainContextHandler.Required + DomainContextHandler.IncludeMetaAttributes)])} 
    175175    def __init__(self, parent=None, signalManager=None, name="KEGG Pathways"): 
    176         OWWidget.__init__(self, parent, signalManager, name) 
     176        OWWidget.__init__(self, parent, signalManager, name, wantGraph=True) 
    177177        self.inputs = [("Examples", ExampleTable, self.SetData), ("Reference", ExampleTable, self.SetRefData)] 
    178178        self.outputs = [("Selected Examples", ExampleTable), ("Unselected Examples", ExampleTable)] 
     
    241241         
    242242        self.connect(self.listView, SIGNAL("itemSelectionChanged()"), self.UpdatePathwayView) 
     243         
     244        self.connect(self.graphButton, SIGNAL("clicked()"), self.saveGraph) 
    243245         
    244246        self.ctrlPressed = False 
     
    561563            self.pathwayView.viewport().update() 
    562564             
     565    def saveGraph(self): 
     566        from OWDlgs import OWChooseImageSizeDlg 
     567        sizeDlg = OWChooseImageSizeDlg(self.pathwayView.scene(), parent=self) 
     568        sizeDlg.exec_() 
    563569 
    564570if __name__=="__main__": 
Note: See TracChangeset for help on using the changeset viewer.