Changeset 7d90e55 in sasview


Ignore:
Timestamp:
Apr 21, 2013 1:33:13 PM (11 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:
31ac4a1
Parents:
cb6a2b7
Message:

still trying to fix scrollpanel on mac

File:
1 edited

Legend:

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

    rcb6a2b7 r7d90e55  
    988988        win = MDIFrame(self, None, 'None', (100, 200)) 
    989989        #win.EnableCloseButton(False) 
    990         self._data_panel = DataPanel(parent=win) 
    991         win.set_panel(self._data_panel) 
    992         self._data_panel.set_frame(win) 
    993         self.panels["data_panel"] = self._data_panel 
     990        data_panel = DataPanel(parent=win,  id=-1) 
     991        win.set_panel(data_panel) 
     992        data_panel.set_frame(win) 
     993        self.panels["data_panel"] = data_panel 
     994        self._data_panel = data_panel 
     995        frame = self._data_panel.get_frame() 
    994996        w, h = self._get_panels_size(self._data_panel) 
    995         win.SetSize((w, h)) 
     997        frame.SetSize((w, h)) 
    996998        style = self.__gui_style & GUIFRAME.MANAGER_ON 
    997999        if style != GUIFRAME.MANAGER_ON: 
     
    10011003        if not IS_WIN: 
    10021004            x_pos, _ = win.GetPositionTuple() 
    1003             win.SetPosition((x_pos, mac_pos_y + 70)) 
    1004         win.Show(flag) 
     1005            frame.SetPosition((x_pos, mac_pos_y + 70)) 
     1006        frame.Show(flag) 
    10051007        d_panel_width = w 
    10061008        # Add the panels to the AUI manager 
     
    10191021                    frame.SetSize((w, h)) 
    10201022                    frame.Show(False) 
     1023            elif panel_class == self._data_panel: 
     1024                continue 
    10211025            else: 
    10221026                self.panels[str(id)] = panel_class 
Note: See TracChangeset for help on using the changeset viewer.