Changeset 2933 for branch


Ignore:
Timestamp:
Jul 14, 2017 9:16:05 AM (6 years ago)
Author:
vondreele
Message:

forgot last fixes to frame positioning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branch/2frame/GSASIIdataGUI.py

    r2932 r2933  
    113113        display[2:3] += display[0:1]
    114114        if (display[0] < pos[0] < display[2]) and (display[1] < pos[1] < display[3]):
    115             print pos,display,ip
    116115            return ip
    117116    return None
     
    28962895            main_pos = eval(GSASIIpath.GetConfigValue('Main_Pos'))
    28972896            self.SetPosition(main_pos)
     2897            if GetDisplay(main_pos) is None:
     2898                self.Center()
    28982899        except:
    28992900            if GSASIIpath.GetConfigValue('Main_Pos'):
    29002901                print('Value for config Main_Pos {} is invalid'.format(GSASIIpath.GetConfigValue('Main_Pos')))
    2901         if GetDisplay(main_pos) is None:
    2902             self.Centre()
     2902                self.Center()
    29032903           
    29042904        try:
    29052905            plot_pos = eval(GSASIIpath.GetConfigValue('Plot_Pos'))
    29062906            self.plotFrame.SetPosition(plot_pos)
    2907             print main_pos,self.GetPosition()
     2907            if GetDisplay(plot_pos) is None:
     2908                self.plotFrame.Center()
    29082909        except:
    29092910            if GSASIIpath.GetConfigValue('Plot_Pos'):
    29102911                print('Value for config Plot_Pos {} is invalid'.format(GSASIIpath.GetConfigValue('Plot_Pos')))
    2911         if GetDisplay(plot_pos) is None:
    2912             self.plotFrame.Centre()
    2913             print plot_pos,self.plotFrame.GetPosition()
     2912                self.plotFrame.Center()
    29142913       
    29152914    def __init__(self, parent):
Note: See TracChangeset for help on using the changeset viewer.