Changeset 5b03122 in sasview for invariantview/perspectives/invariant
- Timestamp:
- Aug 3, 2010 10:22:17 AM (14 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 0d21ac1
- Parents:
- 6ca38f3
- Location:
- invariantview/perspectives/invariant
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
invariantview/perspectives/invariant/invariant_state.py
r6ca38f3 r5b03122 5 5 from xml.dom.minidom import parse 6 6 from lxml import etree 7 """8 try:9 import PIL.Image as Image10 import PIL.PngImagePlugin as PngImagePlugin11 Image._initialized = 212 except:13 try:14 import Image15 import PngImagePlugin16 Image._initialized = 217 except:18 Image = None19 """20 21 22 7 from DataLoader.readers.cansas_reader import Reader as CansasReader 23 8 from DataLoader.readers.cansas_reader import get_content … … 568 553 """ 569 554 # some imports 570 #import cStringIO 571 import matplotlib,wx 555 import wx 572 556 import matplotlib.pyplot as plt 573 557 from matplotlib.backends.backend_agg import FigureCanvasAgg -
invariantview/perspectives/invariant/report_dialog.py
r178bfea r5b03122 64 64 65 65 # buttons 66 id = wx.NewId() 67 button_save = wx.Button(self, id, "Save" ) 68 button_save.SetToolTipString("Save this report.") 69 button_save.Bind(wx.EVT_BUTTON, self.onSave, id = button_save.GetId()) 70 hbox.Add(button_save) 66 id = wx.ID_OK 67 button_close = wx.Button(self, id, "Close") 68 button_close.SetToolTipString("Close this report window.") 69 #hbox.Add((5,10), 1 , wx.EXPAND|wx.ADJUST_MINSIZE,0) 70 hbox.Add(button_close) 71 button_close.SetFocus() 71 72 72 73 id = wx.NewId() … … 82 83 hbox.Add(button_print) 83 84 84 id = wx.ID_OK 85 button_close = wx.Button(self, id, "Close") 86 button_close.SetToolTipString("Close this report window.") 87 hbox.Add((5,10), 1 , wx.EXPAND|wx.ADJUST_MINSIZE,0) 88 hbox.Add(button_close) 89 button_close.SetFocus() 90 85 id = wx.NewId() 86 button_save = wx.Button(self, id, "Save" ) 87 button_save.SetToolTipString("Save this report.") 88 button_save.Bind(wx.EVT_BUTTON, self.onSave, id = button_save.GetId()) 89 hbox.Add(button_save) 91 90 92 91 # panel for report page … … 94 93 vbox= wx.BoxSizer(wx.VERTICAL) 95 94 # html window 96 self.hwindow = html.HtmlWindow(panel, -1,style=wx.BORDER,size=(700,500))95 self.hwindow = html.HtmlWindow(panel,style=wx.BORDER,size=(700,500)) 97 96 # set the html page with the report string 98 97 self.hwindow.SetPage(self.report_html) 98 99 99 # add panels to boxsizers 100 #hbox.Add(bpanel) 101 vbox.Add(hbox,30, wx.EXPAND) 102 vbox.Add(panel,500, wx.EXPAND) 100 vbox.Add(hbox,30) 101 vbox.Add(panel,500, wx.EXPAND|wx.ALL) 103 102 104 103 self.SetSizerAndFit(vbox)
Note: See TracChangeset
for help on using the changeset viewer.