Changeset 0ccd214 in sasview
- Timestamp:
- Jun 20, 2009 6:58:15 PM (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:
- 75925e0
- Parents:
- 0fdcd1e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prview/perspectives/pr/inversion_panel.py
rc405c69 r0ccd214 164 164 self._default_save_location = os.getcwd() 165 165 166 167 # Default width 168 self._default_width = 350 166 169 self._do_layout() 167 170 … … 441 444 442 445 boxsizer1 = wx.StaticBoxSizer(databox, wx.VERTICAL) 443 boxsizer1.SetMinSize(( 320,50))446 boxsizer1.SetMinSize((self._default_width,50)) 444 447 pars_sizer = wx.GridBagSizer(5,5) 445 448 … … 458 461 pars_sizer.Add(self.bck_chk, (iy,0), (1,2), wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 459 462 boxsizer1.Add(pars_sizer, 0, wx.EXPAND) 460 vbox.Add(boxsizer1, (iy_vb,0), (1,1), wx. RIGHT|wx.EXPAND|wx.ADJUST_MINSIZE, 0)463 vbox.Add(boxsizer1, (iy_vb,0), (1,1), wx.LEFT|wx.RIGHT|wx.EXPAND|wx.ADJUST_MINSIZE|wx.TOP, 5) 461 464 462 465 # ----- Add slit parameters ----- … … 464 467 sbox = wx.StaticBox(self, -1, "Slit parameters") 465 468 sboxsizer = wx.StaticBoxSizer(sbox, wx.VERTICAL) 466 sboxsizer.SetMinSize(( 320,20))469 sboxsizer.SetMinSize((self._default_width,20)) 467 470 468 471 sizer_slit = wx.GridBagSizer(5,5) … … 489 492 sboxsizer.Add(sizer_slit, wx.TOP, 15) 490 493 iy_vb += 1 491 vbox.Add(sboxsizer, (iy_vb,0), (1,1), wx. RIGHT|wx.EXPAND|wx.ADJUST_MINSIZE, 0)494 vbox.Add(sboxsizer, (iy_vb,0), (1,1), wx.LEFT|wx.RIGHT|wx.EXPAND|wx.ADJUST_MINSIZE, 5) 492 495 493 496 … … 495 498 qbox = wx.StaticBox(self, -1, "Q range") 496 499 qboxsizer = wx.StaticBoxSizer(qbox, wx.VERTICAL) 497 qboxsizer.SetMinSize(( 320,20))500 qboxsizer.SetMinSize((self._default_width,20)) 498 501 499 502 sizer_q = wx.GridBagSizer(5,5) … … 520 523 521 524 iy_vb += 1 522 vbox.Add(qboxsizer, (iy_vb,0), (1,1), wx. RIGHT|wx.EXPAND|wx.ADJUST_MINSIZE, 0)525 vbox.Add(qboxsizer, (iy_vb,0), (1,1), wx.LEFT|wx.RIGHT|wx.EXPAND|wx.ADJUST_MINSIZE, 5) 523 526 524 527 … … 528 531 parsbox = wx.StaticBox(self, -1, "Parameters") 529 532 boxsizer2 = wx.StaticBoxSizer(parsbox, wx.VERTICAL) 530 boxsizer2.SetMinSize(( 320,50))533 boxsizer2.SetMinSize((self._default_width,50)) 531 534 532 535 explanation = "P(r) is found by fitting a set of base functions to I(Q). " … … 535 538 explanation += "term. The suggested value is the value above which the " 536 539 explanation += "output P(r) will have only one peak." 537 label_explain = wx.StaticText(self, -1, explanation, size=(280, 80))540 label_explain = wx.StaticText(self, -1, explanation, size=(280,120)) 538 541 boxsizer2.Add(label_explain, wx.LEFT|wx.BOTTOM, 5) 539 542 … … 601 604 602 605 iy_vb += 1 603 vbox.Add(boxsizer2, (iy_vb,0), (1,1), wx. RIGHT|wx.EXPAND|wx.ADJUST_MINSIZE, 0)606 vbox.Add(boxsizer2, (iy_vb,0), (1,1), wx.LEFT|wx.RIGHT|wx.EXPAND|wx.ADJUST_MINSIZE, 5) 604 607 605 608 … … 607 610 resbox = wx.StaticBox(self, -1, "Outputs") 608 611 ressizer = wx.StaticBoxSizer(resbox, wx.VERTICAL) 609 ressizer.SetMinSize(( 320,50))612 ressizer.SetMinSize((self._default_width,50)) 610 613 611 614 label_rg = wx.StaticText(self, -1, "Rg") … … 695 698 ressizer.Add(sizer_res, 0) 696 699 iy_vb += 1 697 vbox.Add(ressizer, (iy_vb,0), (1,1), wx. RIGHT|wx.EXPAND|wx.ADJUST_MINSIZE, 0)700 vbox.Add(ressizer, (iy_vb,0), (1,1), wx.LEFT|wx.RIGHT|wx.EXPAND|wx.ADJUST_MINSIZE, 5) 698 701 699 702 # ----- Buttons ----- … … 721 724 #sizer_button.Add(button_Cancel, 0, wx.LEFT|wx.RIGHT|wx.ADJUST_MINSIZE, 10) 722 725 iy_vb += 1 723 vbox.Add(sizer_button, (iy_vb,0), (1,1), wx.EXPAND|wx.BOTTOM|wx.TOP , 10)726 vbox.Add(sizer_button, (iy_vb,0), (1,1), wx.EXPAND|wx.BOTTOM|wx.TOP|wx.RIGHT, 10) 724 727 725 728 self.Bind(wx.EVT_TEXT_ENTER, self._on_invert)
Note: See TracChangeset
for help on using the changeset viewer.