Changeset 2975 for branch/2frame/GSASIIdataGUI.py
- Timestamp:
- Aug 8, 2017 4:54:15 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branch/2frame/GSASIIdataGUI.py
r2963 r2975 4558 4558 Sizer = self.GetSizer() 4559 4559 if not Sizer: return 4560 if Sizer.GetItemCount() == 1: # if there is a single grid, resize it 4560 #if Sizer.GetItemCount() == 1: # not wx 2.8 4561 if len(Sizer.GetChildren()) == 1: # if there is a single grid, resize it 4561 4562 if isinstance(Sizer.GetItem(0).GetWindow(), G2G.GSGrid): 4562 4563 Sizer.GetItem(0).GetWindow().SetSize(self.GetSize()) … … 4570 4571 if GSASIIpath.GetConfigValue('debug'): raise Exception 4571 4572 return 4572 if Sizer.GetItemCount() == 1: # handle cases with a single grid in DataWindow differently 4573 #if Sizer.GetItemCount() == 1: # not wx 2.8 4574 if len(Sizer.GetChildren()) == 1: # handle cases with a single grid in DataWindow differently 4573 4575 # note that Grid's scroll bars must be turned on with .SetScrollRate(1,1) 4574 4576 # just after the call to .GSGrid()
Note: See TracChangeset
for help on using the changeset viewer.