Changeset 3e001f9 in sasview for calculatorview
- Timestamp:
- Apr 6, 2013 1:36:03 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:
- 4bdd4fdb
- Parents:
- cb270ad2
- Location:
- calculatorview/src/sans/perspectives/calculator
- Files:
-
- 5 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/src/sans/perspectives/calculator/calculator.py
r49a8843 r3e001f9 66 66 gensans_help = "Generic SANS" 67 67 pyconsole_help = "Python Console." 68 imageviewer_help = "Load an image file and display the image." 68 69 #data_editor_help = "Meta Data Editor" 69 70 return [("Data Operation", … … 80 81 ("Generic Scattering Calculator", 81 82 gensans_help, self.on_gen_model), 82 ("Python Shell/Editor", pyconsole_help, self.on_python_console)] 83 ("Python Shell/Editor", pyconsole_help, self.on_python_console), 84 ("Image Viewer", imageviewer_help, self.on_image_viewer),] 83 85 84 86 def on_edit_data(self, event): … … 162 164 self.put_icon(frame) 163 165 frame.Show(True) 166 167 def on_image_viewer(self, event): 168 """ 169 Get choose an image file dialog 170 171 :param event: menu event 172 """ 173 from sans.perspectives.calculator.image_viewer import ImageView 174 image_view = ImageView(parent=self.parent) 175 image_view.load() 164 176 165 177 def on_python_console(self, event): … … 193 205 except: 194 206 pass 195 196 -
calculatorview/src/sans/perspectives/calculator/gen_scatter_panel.py
r968f72d r3e001f9 662 662 output = self.sld_data 663 663 #frame_size = wx.Size(470, 470) 664 self.plot_frame = PlotFrame(self , -1, 'testView')664 self.plot_frame = PlotFrame(self.parent.parent, -1, 'testView') 665 665 frame = self.plot_frame 666 666 frame.Show(False) … … 1790 1790 return flag 1791 1791 1792 class SasGenWindow(wx. Frame):1792 class SasGenWindow(wx.MDIChildFrame): 1793 1793 """ 1794 1794 GEN SAS main window … … 1802 1802 kwds['title'] = title 1803 1803 1804 wx. Frame.__init__(self, parent, *args, **kwds)1804 wx.MDIChildFrame.__init__(self, parent, *args, **kwds) 1805 1805 self.parent = parent 1806 1806 self.omfpanel = OmfPanel(parent=self) … … 2002 2002 """ 2003 2003 """ 2004 frame = PlotFrame(self , -1, 'testView', self.scale2d)2004 frame = PlotFrame(self.parent, -1, 'testView', self.scale2d) 2005 2005 add_icon(self.parent, frame) 2006 2006 frame.add_plot(plot) -
calculatorview/src/sans/perspectives/calculator/help_panel.py
r318b5bbb r3e001f9 84 84 <li><a href ="pycrust_help.html" 85 85 target ="showframe">Python Shell</a><br></li> 86 <li><a href ="load_image_help.html" 87 target ="showframe">Image Viewer</a><br></li> 86 88 </ul> 87 89 </body>
Note: See TracChangeset
for help on using the changeset viewer.