Changeset 62af27a9 in sasview


Ignore:
Timestamp:
Apr 26, 2013 12:49:19 PM (12 years ago)
Author:
Jae Cho <jhjcho@…>
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
Message:

fixed Tool standalone-side run.

Location:
calculatorview/src/sans/perspectives/calculator
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/src/sans/perspectives/calculator/data_operator.py

    rd0923a3 r62af27a9  
    956956         
    957957if __name__ == "__main__": 
    958     
     958 
    959959    app  = wx.App() 
     960    widget.CHILD_FRAME = wx.Frame 
    960961    window = DataOperatorWindow(parent=None, data=[], title="Data Editor") 
    961962    app.MainLoop() 
  • calculatorview/src/sans/perspectives/calculator/density_panel.py

    rd0923a3 r62af27a9  
    406406        """ 
    407407        """ 
     408        widget.CHILD_FRAME = wx.Frame 
    408409        frame = DensityWindow(None, title="Density/Volume Calculator")     
    409410        frame.Show(True) 
  • calculatorview/src/sans/perspectives/calculator/gen_scatter_panel.py

    rd0923a3 r62af27a9  
    3535from sans.perspectives.calculator.load_thread import GenReader 
    3636from danse.common.plottools.arrow3d import Arrow3D 
    37 from sans.perspectives.calculator import calculator_widgets as widget    
     37from sans.perspectives.calculator import calculator_widgets as widget 
     38from sans.guiframe.events import NewPlotEvent     
    3839 
    3940_BOX_WIDTH = 76 
     
    20112012        """ 
    20122013        """ 
    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 
    20232025    def set_schedule_full_draw(self, panel=None, func='del'):   
    20242026        """ 
    20252027        Send full draw to gui frame 
    20262028        """ 
    2027         self.parent.set_schedule_full_draw(panel, func) 
     2029        if self.parent != None: 
     2030            self.parent.set_schedule_full_draw(panel, func) 
    20282031         
    20292032    def get_npix(self): 
     
    21322135if __name__ == "__main__":  
    21332136    app = wx.PySimpleApp() 
     2137    widget.CHILD_FRAME = wx.Frame 
    21342138    SGframe = SasGenWindow()     
    21352139    SGframe.Show(True) 
  • calculatorview/src/sans/perspectives/calculator/kiessig_calculator_panel.py

    rd0923a3 r62af27a9  
    216216if __name__ == "__main__":  
    217217    app = wx.PySimpleApp() 
     218    widget.CHILD_FRAME = wx.Frame 
    218219    frame = KiessigWindow()     
    219220    frame.Show(True) 
  • calculatorview/src/sans/perspectives/calculator/resolution_calculator_panel.py

    rd0923a3 r62af27a9  
    14281428if __name__ == "__main__":  
    14291429    app = wx.PySimpleApp() 
     1430    widget.CHILD_FRAME = wx.Frame 
    14301431    frame = ResolutionWindow()     
    14311432    frame.Show(True) 
  • calculatorview/src/sans/perspectives/calculator/sld_panel.py

    rd0923a3 r62af27a9  
    474474        """ 
    475475        """ 
     476        widget.CHILD_FRAME = wx.Frame 
    476477        frame = SldWindow(None, title='SLD Calculator')     
    477478        frame.Show(True) 
  • calculatorview/src/sans/perspectives/calculator/slit_length_calculator_panel.py

    rd0923a3 r62af27a9  
    279279if __name__ == "__main__":  
    280280    app = wx.PySimpleApp() 
     281    widget.CHILD_FRAME = wx.Frame 
    281282    frame = SlitLengthCalculatorWindow()     
    282283    frame.Show(True) 
Note: See TracChangeset for help on using the changeset viewer.