Changeset fa412df in sasview for src/sas/sasgui/perspectives/fitting


Ignore:
Timestamp:
Sep 6, 2018 10:58:01 AM (6 years ago)
Author:
krzywon
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, unittest-saveload
Children:
d0ce666f
Parents:
ec4b19c
Message:

Simplify calling image handler and add documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/basepage.py

    r0cf4f84 rfa412df  
    652652        by plotting, putting it into wx.FileSystem image object 
    653653        """ 
    654  
    655         img_handler = ReportImageHandler() 
    656654        bitmaps = [] 
    657655        for canvas in canvases: 
    658656            bitmaps.append(canvas.bitmap) 
    659         imgs, refs = img_handler.instance.set_figs(figs, bitmaps, 'fit') 
    660  
    661         return img_handler.instance.img_holder, imgs, refs 
     657        imgs, refs = ReportImageHandler.set_figs(figs, bitmaps, 'fit') 
     658 
     659        return ReportImageHandler.instance, imgs, refs 
    662660 
    663661    def on_save(self, event): 
Note: See TracChangeset for help on using the changeset viewer.