Changeset ae84427 in sasview for calculatorview/src/sans/perspectives/calculator/gen_scatter_panel.py
- Timestamp:
- Apr 20, 2013 7:14:41 PM (12 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:
- ba152f1
- Parents:
- d4895dd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/src/sans/perspectives/calculator/gen_scatter_panel.py
rd4895dd rae84427 19 19 matplotlib.use('WXAgg') 20 20 21 #from sans.guiframe.gui_manager import MDIFrame 21 22 from data_util.calcthread import CalcThread 22 23 from sans.guiframe.local_perspectives.plotting.SimplePlot import PlotFrame … … 1113 1114 num_graph = str(self.graph_num) 1114 1115 wx.CallAfter(self.parent.draw_graph, new_plot, 1115 title="G raph %s: "% num_graph + new_plot.id )1116 title="GEN Graph %s: "% num_graph + new_plot.id ) 1116 1117 self.graph_num += 1 1117 1118 … … 1172 1173 num_graph = str(self.graph_num) 1173 1174 wx.CallAfter(self.parent.draw_graph, new_plot, 1174 title="G raph %s: "% num_graph + new_plot.id )1175 title="GEN Graph %s: "% num_graph + new_plot.id ) 1175 1176 self.graph_num += 1 1176 1177 1177 1178 def set_scale2d(self, scale): 1178 1179 """ … … 1794 1795 GEN SAS main window 1795 1796 """ 1796 def __init__(self, parent=None, title="Generic Scattering Calculator",1797 def __init__(self, parent=None, manager= None, title="Generic Scattering Calculator", 1797 1798 size=(PANEL_WIDTH * 1.3, PANEL_HEIGHT * 1.65), *args, **kwds): 1798 1799 """ … … 1804 1805 wx.Frame.__init__(self, parent, *args, **kwds) 1805 1806 self.parent = parent 1807 self.base = manager 1806 1808 self.omfpanel = OmfPanel(parent=self) 1807 1809 self.panel = SasGenPanel(parent=self) … … 1815 1817 self._plot_title = '' 1816 1818 self.scale2d = 'log_{10}' 1819 self.Bind(wx.EVT_CLOSE, self.on_close) 1817 1820 1818 1821 self._build_toolbar() 1819 self._build_menubar()1820 1822 1821 1823 self.build_panels() … … 2008 2010 frame.Show(True) 2009 2011 frame.SetFocus() 2010 2012 2013 def set_schedule_full_draw(self, panel=None, func='del'): 2014 """ 2015 Send full draw to gui frame 2016 """ 2017 self.parent.set_schedule_full_draw(panel, func) 2018 2011 2019 def get_npix(self): 2012 2020 """ … … 2082 2090 Close 2083 2091 """ 2092 if self.base != None: 2093 self.base.gen_frame = None 2084 2094 self.Destroy() 2085 2095
Note: See TracChangeset
for help on using the changeset viewer.