Changeset ec4b19c in sasview for src/sas/sasgui/perspectives/invariant/invariant_state.py
- Timestamp:
- Sep 6, 2018 9:13:35 AM (6 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, unittest-saveload
- Children:
- fa412df
- Parents:
- 0cf4f84
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/invariant/invariant_state.py
r2469df7 rec4b19c 12 12 from lxml import etree 13 13 from sas.sascalc.dataloader.readers.cansas_reader import Reader as CansasReader 14 from sas.sasgui.guiframe.report_image_handler import ReportImageHandler 14 15 from sas.sascalc.dataloader.readers.cansas_reader import get_content 15 16 from sas.sasgui.guiframe.utils import format_number … … 611 612 wximgbmp = wx.BitmapFromImage(wximg) 612 613 # store the image in wx.FileSystem Object 613 wx.FileSystem.AddHandler(wx.MemoryFSHandler()) 614 # use wx.MemoryFSHandler 615 self.imgRAM = wx.MemoryFSHandler() 616 # AddFile, image can be retrieved with 'memory:filename' 617 self.imgRAM.AddFile('img_inv.png', wximgbmp, wx.BITMAP_TYPE_PNG) 618 619 self.wximgbmp = 'memory:img_inv.png' 620 self.image = fig 614 self.img_handler = ReportImageHandler() 615 imgs, refs = self.img_handler.instance.set_figs([fig], [wximgbmp], 'inv') 616 617 self.wximgbmp = refs[0] 618 self.image = imgs[0] 621 619 622 620 class Reader(CansasReader):
Note: See TracChangeset
for help on using the changeset viewer.