Ignore:
Timestamp:
Mar 20, 2019 8:06:22 AM (5 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
ticket-1249
Children:
9305b46
Parents:
09d7021
Message:

py3/wx4 compatibility changes for gui. Refs #1249

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/gui_manager.py

    r82d88d5 r34f23c8  
    282282        toolbar = self.GetToolBar() 
    283283        if toolbar is not None: 
    284             _, tb_h = toolbar.GetSizeTuple() 
     284            _, tb_h = toolbar.GetSize() 
    285285            height -= tb_h 
    286286        return width, height 
     
    948948                if panel_class.CENTER_PANE: 
    949949                    self.panels[str(wx_id)] = panel_class 
    950                     _, pos_y = frame.GetPositionTuple() 
     950                    _, pos_y = frame.GetPosition() 
    951951                    frame.SetPosition((d_panel_width + 1, pos_y)) 
    952952                    frame.SetSize((w, h)) 
     
    11161116        if not IS_WIN: 
    11171117            p.frame.Center() 
    1118             x_pos, _ = p.frame.GetPositionTuple() 
     1118            x_pos, _ = p.frame.GetPosition() 
    11191119            p.frame.SetPosition((x_pos, 112)) 
    11201120        p.frame.Show(True) 
     
    30113011        if self.GetToolBar() is not None and self.GetToolBar().IsShown(): 
    30123012            if not IS_LINUX: 
    3013                 _, size_y = self.GetToolBar().GetSizeTuple() 
     3013                _, size_y = self.GetToolBar().GetSize() 
    30143014        return size_y 
    30153015 
     
    31303130        :rtype: tuple 
    31313131        """ 
    3132         width, height = self.GetSizeTuple() 
     3132        width, height = self.GetSize() 
    31333133        if not IS_WIN: 
    31343134            # Subtract toolbar height to get real window side 
Note: See TracChangeset for help on using the changeset viewer.