Changeset 31ac4a1 in sasview for sansguiframe


Ignore:
Timestamp:
Apr 21, 2013 2:08:46 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:
5cfa884
Parents:
7d90e55
Message:

trying to fix scrolleddatapanel: MAC

Location:
sansguiframe/src/sans/guiframe
Files:
2 edited

Legend:

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

    rcb6a2b7 r31ac4a1  
    132132                 id=-1, 
    133133                 list_of_perspective=None, manager=None, *args, **kwds): 
    134         kwds['size'] = size 
    135         kwds['style'] = STYLE_FLAG 
     134        #kwds['size'] = size 
     135        #kwds['style'] = STYLE_FLAG 
    136136        ScrolledPanel.__init__(self, parent=parent, id=id, *args, **kwds) 
    137         PanelBase.__init__(self) 
     137        PanelBase.__init__(self, parent) 
    138138        self.SetupScrolling() 
    139139        #Set window's font size  
     
    145145        self.parent = parent.parent 
    146146        self._manager = manager 
    147         self.frame = None 
     147        self.frame = parent 
    148148        if list is None: 
    149149            list = [] 
  • sansguiframe/src/sans/guiframe/gui_manager.py

    r7d90e55 r31ac4a1  
    990990        data_panel = DataPanel(parent=win,  id=-1) 
    991991        win.set_panel(data_panel) 
    992         data_panel.set_frame(win) 
     992        #data_panel.set_frame(win) 
    993993        self.panels["data_panel"] = data_panel 
    994994        self._data_panel = data_panel 
    995         frame = self._data_panel.get_frame() 
    996995        w, h = self._get_panels_size(self._data_panel) 
    997         frame.SetSize((w, h)) 
     996        win.SetSize((w, h)) 
    998997        style = self.__gui_style & GUIFRAME.MANAGER_ON 
    999998        if style != GUIFRAME.MANAGER_ON: 
     
    10031002        if not IS_WIN: 
    10041003            x_pos, _ = win.GetPositionTuple() 
    1005             frame.SetPosition((x_pos, mac_pos_y + 70)) 
    1006         frame.Show(flag) 
     1004            win.SetPosition((x_pos, mac_pos_y + 70)) 
     1005        win.Show(flag) 
    10071006        d_panel_width = w 
    10081007        # Add the panels to the AUI manager 
     
    10221021                    frame.Show(False) 
    10231022            elif panel_class == self._data_panel: 
     1023                panel_class.frame.Show(flag) 
    10241024                continue 
    10251025            else: 
Note: See TracChangeset for help on using the changeset viewer.