Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/report_dialog.py

    r91552b5 r69a6897  
    2727class BaseReportDialog(wx.Dialog): 
    2828 
    29     def __init__(self, report_list, imgRAM, fig_urls, *args, **kwds): 
     29    def __init__(self, report_list, *args, **kwds): 
    3030        """ 
    3131        Initialization. The parameters added to Dialog are: 
     
    3737        kwds["image"] = 'Dynamic Image' 
    3838 
    39         #MemoryFSHandle for storing images 
    40         self.imgRAM = imgRAM 
    41         #Images location in urls 
    42         self.fig_urls = fig_urls 
    4339        # title 
    4440        self.SetTitle("Report") 
     
    7975        hbox.Add(button_print) 
    8076 
    81         if sys.platform != "darwin": 
    82             button_save = wx.Button(self, wx.NewId(), "Save") 
    83             button_save.SetToolTipString("Save this report.") 
    84             button_save.Bind(wx.EVT_BUTTON, self.onSave, id=button_save.GetId()) 
    85             hbox.Add(button_save) 
     77        button_save = wx.Button(self, wx.NewId(), "Save") 
     78        button_save.SetToolTipString("Save this report.") 
     79        button_save.Bind(wx.EVT_BUTTON, self.onSave, id=button_save.GetId()) 
     80        hbox.Add(button_save) 
    8681 
    8782        # panel for report page 
     
    116111        printh.PrintText(self.report_html) 
    117112 
    118  
    119113    def OnClose(self, event=None): 
    120114        """ 
     
    122116        : event: Close button event 
    123117        """ 
    124         for fig in self.fig_urls: 
    125             self.imgRAM.RemoveFile(fig) 
    126  
    127118        self.Close() 
    128119 
Note: See TracChangeset for help on using the changeset viewer.