Changeset 199cef2 in sasview for theoryview/perspectives/theory
- Timestamp:
- Apr 8, 2010 9:48:55 AM (15 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:
- a704bb5
- Parents:
- eed601e
- Location:
- theoryview/perspectives/theory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
theoryview/perspectives/theory/model_panel.py
re071b1c r199cef2 605 605 None,None, None, None,None]) 606 606 self.orientation_params.append([None,item, ctl1, 607 None,None, None, None,None]) 608 609 iy+=1 607 None,None, None, None,None]) 608 iy += 1 610 609 611 610 #Display units text on panel … … 613 612 self.text2_4.Show() 614 613 615 616 614 boxsizer1.Add(sizer) 617 615 self.sizer3.Add(boxsizer1,0, wx.EXPAND | wx.ALL, 10) 618 616 self.sizer3.Layout() 619 617 self.SetScrollbars(20,20,25,65) 620 621 622 623 618 624 625 class HelpWindow(wx.Frame):626 def __init__(self, parent, id, title):627 wx.Frame.__init__(self, parent, id, title, size=(570, 400))628 629 from sans.models.CylinderModel import CylinderModel630 model = CylinderModel()631 #from sans.models.LineModel import LineModel632 #model = LineModel()633 from fitpanel import PageInfo634 myinfo = PageInfo(self,model)635 from models import ModelList636 mylist= ModelList()637 638 from sans.models.SphereModel import SphereModel639 from sans.models.SquareWellStructure import SquareWellStructure640 from sans.models.DebyeModel import DebyeModel641 from sans.models.LineModel import LineModel642 name= "shapes"643 list1= [SphereModel]644 mylist.set_list( name, list1)645 646 name= "Shape-independent"647 list1= [DebyeModel]648 mylist.set_list( name, list1)649 650 name= "Structure Factors"651 list1= [SquareWellStructure]652 mylist.set_list( name, list1)653 654 name= "Added models"655 list1= [LineModel]656 mylist.set_list( name, list1)657 658 myinfo.model_list_box = mylist.get_list()659 660 self.page = ModelPage(self, myinfo)661 662 663 664 self.Centre()665 self.Show(True)666 667 668 669 if __name__=="__main__":670 app = wx.App()671 HelpWindow(None, -1, 'HelpWindow')672 app.MainLoop()673 -
theoryview/perspectives/theory/theory.py
r64017a8 r199cef2 275 275 276 276 except: 277 raise 278 #msg= " Error occurred when drawing %s Model 1D: "%model.name 279 #msg+= " %s"%sys.exc_value 280 #wx.PostEvent( self.parent, StatusEvent(status= msg )) 281 #return 282 277 msg = " Error occurred when drawing %s Model 1D: "%model.name 278 msg += " %s"%sys.exc_value 279 wx.PostEvent(self.parent, StatusEvent(status=msg)) 280 283 281 def _update1D(self,x, output): 284 282 """
Note: See TracChangeset
for help on using the changeset viewer.