- Timestamp:
- Jul 14, 2017 9:16:05 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branch/2frame/GSASIIdataGUI.py
r2932 r2933 113 113 display[2:3] += display[0:1] 114 114 if (display[0] < pos[0] < display[2]) and (display[1] < pos[1] < display[3]): 115 print pos,display,ip116 115 return ip 117 116 return None … … 2896 2895 main_pos = eval(GSASIIpath.GetConfigValue('Main_Pos')) 2897 2896 self.SetPosition(main_pos) 2897 if GetDisplay(main_pos) is None: 2898 self.Center() 2898 2899 except: 2899 2900 if GSASIIpath.GetConfigValue('Main_Pos'): 2900 2901 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() 2903 2903 2904 2904 try: 2905 2905 plot_pos = eval(GSASIIpath.GetConfigValue('Plot_Pos')) 2906 2906 self.plotFrame.SetPosition(plot_pos) 2907 print main_pos,self.GetPosition() 2907 if GetDisplay(plot_pos) is None: 2908 self.plotFrame.Center() 2908 2909 except: 2909 2910 if GSASIIpath.GetConfigValue('Plot_Pos'): 2910 2911 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() 2914 2913 2915 2914 def __init__(self, parent):
Note: See TracChangeset
for help on using the changeset viewer.