Changeset 62af27a9 in sasview for calculatorview/src/sans/perspectives/calculator/gen_scatter_panel.py
- Timestamp:
- Apr 26, 2013 2:49:19 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:
- 0d5768d
- Parents:
- 7c38c90
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/src/sans/perspectives/calculator/gen_scatter_panel.py
rd0923a3 r62af27a9 35 35 from sans.perspectives.calculator.load_thread import GenReader 36 36 from danse.common.plottools.arrow3d import Arrow3D 37 from sans.perspectives.calculator import calculator_widgets as widget 37 from sans.perspectives.calculator import calculator_widgets as widget 38 from sans.guiframe.events import NewPlotEvent 38 39 39 40 _BOX_WIDTH = 76 … … 2011 2012 """ 2012 2013 """ 2013 from sans.guiframe.events import NewPlotEvent 2014 wx.PostEvent(self.parent, NewPlotEvent(plot=plot, title=title)) 2015 """ 2016 frame = PlotFrame(self, -1, 'testView', self.scale2d) 2017 add_icon(self.parent, frame) 2018 frame.add_plot(plot) 2019 frame.SetTitle(title) 2020 frame.Show(True) 2021 frame.SetFocus() 2022 """ 2014 try: 2015 wx.PostEvent(self.parent, NewPlotEvent(plot=plot, title=title)) 2016 except: 2017 # standalone 2018 frame = PlotFrame(self, -1, 'testView', self.scale2d) 2019 #add_icon(self.parent, frame) 2020 frame.add_plot(plot) 2021 frame.SetTitle(title) 2022 frame.Show(True) 2023 frame.SetFocus() 2024 2023 2025 def set_schedule_full_draw(self, panel=None, func='del'): 2024 2026 """ 2025 2027 Send full draw to gui frame 2026 2028 """ 2027 self.parent.set_schedule_full_draw(panel, func) 2029 if self.parent != None: 2030 self.parent.set_schedule_full_draw(panel, func) 2028 2031 2029 2032 def get_npix(self): … … 2132 2135 if __name__ == "__main__": 2133 2136 app = wx.PySimpleApp() 2137 widget.CHILD_FRAME = wx.Frame 2134 2138 SGframe = SasGenWindow() 2135 2139 SGframe.Show(True)
Note: See TracChangeset
for help on using the changeset viewer.