Changeset 944724a in sasview for sansguiframe/src/sans/guiframe


Ignore:
Timestamp:
Sep 21, 2012 12:19:23 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:
8e24480
Parents:
dad7cef
Message:

some fixes in cat mod frozen (sizer) dialog:mac

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/CategoryManager.py

    rea5fa58 r944724a  
    258258                                      self._get_cat_list(), 
    259259                                      self.by_model_dict[selected_model]) 
    260  
     260            icon = self.parent.GetIcon() 
     261            modify_dialog.SetIcon(icon) 
    261262            if modify_dialog.ShowModal() == wx.ID_OK: 
    262263                self.by_model_dict[selected_model] = \ 
     
    367368        if str(self.current_cats[0]) == 'Uncategorized': 
    368369            self.current_cats = [] 
     370             
     371        vbox = wx.BoxSizer(wx.VERTICAL) 
     372        gs = wx.GridSizer(3, 2, 5, 5) 
    369373 
    370374        self.cat_list = cat_list 
     
    396400        self.existing_check.Bind(wx.EVT_RADIOBUTTON, self.on_existing) 
    397401        self.new_check.Bind(wx.EVT_RADIOBUTTON, self.on_newcat) 
    398  
    399  
    400  
    401         vbox = wx.BoxSizer(wx.VERTICAL) 
     402        self.existing_check.SetValue(True) 
     403 
     404         
    402405        vbox.Add(self.cat_text, flag = wx.LEFT | wx.TOP | wx.ALIGN_LEFT,  
    403406                 border = 10) 
     
    405408                 border = 10  ) 
    406409 
    407         gs = wx.GridSizer(3, 2, 5, 5) 
     410         
    408411 
    409412        gs.AddMany( [ (self.existing_check, 5, wx.ALL), 
    410                       (self.exist_combo, 5, wx.ALL), 
     413                      (self.exist_combo, 5, wx.ALL, 5), 
    411414                      (self.new_check, 5, wx.ALL), 
    412                       (self.new_text, 5, wx.ALL ), 
     415                      (self.new_text, 5, wx.ALL, 5), 
    413416                      ((-1,-1)), 
    414                       (self.add_button, 5, wx.ALL | wx.ALIGN_RIGHT) ] ) 
     417                      (self.add_button, 5, wx.ALL | wx.ALIGN_RIGHT, 5) ] ) 
    415418 
    416419        self.add_sb_sizer.Add(gs, proportion = 1, flag = wx.ALL, border = 5) 
Note: See TracChangeset for help on using the changeset viewer.