Ignore:
Timestamp:
Oct 24, 2018 5:40:56 AM (5 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
7ecece1
Parents:
d7d55c7
Message:

Added "Close All Plots" to main window/Window menu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/DataExplorer.py

    r3b95b3b r6bc0840  
    13041304        self.manager.update_stored_data(deleted_names) 
    13051305 
     1306    def closeAllPlots(self): 
     1307        """ 
     1308        Close all currently displayed plots 
     1309        """ 
     1310 
     1311        for plot_id in PlotHelper.currentPlots(): 
     1312            try: 
     1313                plotter = PlotHelper.plotById(plot_id) 
     1314                plotter.close() 
     1315                self.plot_widgets[plot_id].close() 
     1316                self.plot_widgets.pop(plot_id, None) 
     1317            except AttributeError as ex: 
     1318                logging.error("Closing of %s failed:\n %s" % (plot_id, str(ex))) 
     1319 
    13061320    def closePlotsForItem(self, item): 
    13071321        """ 
Note: See TracChangeset for help on using the changeset viewer.