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/local_perspectives/plotting/Plotter2D.py

    r5251ec6 r34f23c8  
    179179        # On Windows platform, default window size is incorrect, so set 
    180180        # toolbar width to figure width. 
    181         _, th = self.toolbar.GetSizeTuple() 
    182         fw, _ = self.canvas.GetSizeTuple() 
     181        _, th = self.toolbar.GetSize() 
     182        fw, _ = self.canvas.GetSize() 
    183183        self.toolbar.SetSize(wx.Size(fw, th)) 
    184184        self.sizer.Add(self.toolbar, 0, wx.LEFT | wx.EXPAND) 
     
    400400            pos = self.ScreenToClient(pos_evt) 
    401401        except: 
    402             pos_x, pos_y = self.toolbar.GetPositionTuple() 
     402            pos_x, pos_y = self.toolbar.GetPosition() 
    403403            pos = (pos_x, pos_y + 5) 
    404404        self.PopupMenu(slicerpop, pos) 
Note: See TracChangeset for help on using the changeset viewer.