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/startup_configuration.py

    r5251ec6 r34f23c8  
    127127            for panel in self.parent.plot_panels.values(): 
    128128                #p_panel = self.parent._mgr.GetPane(panel.window_name) 
    129                 width, _ = panel.frame.GetSizeTuple() 
     129                width, _ = panel.frame.GetSize() 
    130130                if panel.frame.IsShown(): 
    131131                    if p_size is None or width > p_size: 
     
    137137            try: 
    138138                control_frame = self.parent.get_current_perspective().frame 
    139                 control_w, control_h = control_frame.GetSizeTuple() 
     139                control_w, control_h = control_frame.GetSize() 
    140140                self.current_string['CONTROL_WIDTH'] = control_w 
    141141                self.current_string['CONTROL_HEIGHT'] = control_h 
     
    144144                self.current_string['CONTROL_HEIGHT'] = -1 
    145145 
    146             data_pw, _ = self.parent.panels["data_panel"].frame.GetSizeTuple() 
     146            data_pw, _ = self.parent.panels["data_panel"].frame.GetSize() 
    147147            if data_pw is None: 
    148148                data_pw = CURRENT_STRINGS['DATAPANEL_WIDTH'] 
Note: See TracChangeset for help on using the changeset viewer.