Changeset 3c44c66 in sasview for theoryview/perspectives/theory


Ignore:
Timestamp:
Jul 20, 2010 2:36:35 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
cb19af9f
Parents:
1b17a64
Message:

working on guiframe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • theoryview/perspectives/theory/model_panel.py

    r74755ff r3c44c66  
    363363        wx.PostEvent(self.parent, event) 
    364364               
    365                  
     365    def set_data(self, list=[], state=None): 
     366        """ 
     367        Receive  a list of data from gui_manager to plot theory 
     368        """ 
     369        if list==[]: 
     370            msg = "Please select data for Theory perspective.\n" 
     371            dial = wx.MessageDialog(None, msg, 'Error Loading File',  
     372                                    wx.OK | wx.ICON_EXCLAMATION) 
     373            dial.ShowModal()  
     374            return 
     375        else : 
     376            msg = "Theory perspective does not allow Data.\n" 
     377            msg += "Please import theory or go the theory perspective.\n" 
     378            dial = wx.MessageDialog(None, msg, 'Error Loading File',  
     379                                    wx.OK | wx.ICON_EXCLAMATION) 
     380            dial.ShowModal()  
     381      
    366382    def reset_page(self, state): 
    367383        """ 
Note: See TracChangeset for help on using the changeset viewer.