Ignore:
Timestamp:
Aug 8, 2017 4:54:15 PM (6 years ago)
Author:
toby
Message:

fix for wx2.8 and null file path

File:
1 edited

Legend:

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

    r2963 r2975  
    45584558        Sizer = self.GetSizer()
    45594559        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
    45614562            if isinstance(Sizer.GetItem(0).GetWindow(), G2G.GSGrid):
    45624563                Sizer.GetItem(0).GetWindow().SetSize(self.GetSize())
     
    45704571            if GSASIIpath.GetConfigValue('debug'): raise Exception
    45714572            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
    45734575            # note that Grid's scroll bars must be turned on with .SetScrollRate(1,1)
    45744576            # just after the call to .GSGrid()
Note: See TracChangeset for help on using the changeset viewer.