Ignore:
Timestamp:
Nov 30, 2018 2:57:46 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_sync_sascalc
Children:
99f8760, 11a336f, 9d23e4c
Parents:
5d75a181
Message:

Show Plot now restores minimized plots. SASVIEW-1221 == trac#13
Added "Minimize all plots" to Window menu
Changed draw → draw_idle to avoid weird numpy linalg errors

File:
1 edited

Legend:

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

    r5d75a181 rd9e7792  
    11021102            if data.plot_role != Data1D.ROLE_DATA: 
    11031103                self.active_plots[data_id].replacePlot(data_id, data) 
     1104                # restore minimized window, if applicable 
     1105                self.active_plots[data_id].showNormal() 
    11041106            return True 
    11051107        elif data_id in ids_vals: 
    11061108            if data.plot_role != Data1D.ROLE_DATA: 
    11071109                list(self.active_plots.values())[ids_vals.index(data_id)].replacePlot(data_id, data) 
     1110                self.active_plots[data_id].showNormal() 
    11081111            return True 
    11091112        return False 
     
    16491652                logging.error("Closing of %s failed:\n %s" % (plot_id, str(ex))) 
    16501653 
     1654    def minimizeAllPlots(self): 
     1655        """ 
     1656        Minimize all currently displayed plots 
     1657        """ 
     1658        for plot_id in PlotHelper.currentPlots(): 
     1659            plotter = PlotHelper.plotById(plot_id) 
     1660            plotter.showMinimized() 
     1661 
    16511662    def closePlotsForItem(self, item): 
    16521663        """ 
Note: See TracChangeset for help on using the changeset viewer.