Ignore:
Timestamp:
Jul 1, 2017 11:17:10 AM (6 years ago)
Author:
vondreele
Message:

Constraints now displayed
fix TopLevel? references
fix display issues for Sample Parameters
fix Resttraints display issues

File:
1 edited

Legend:

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

    r2888 r2890  
    16271627        '''
    16281628        self.datamenu = menu
    1629         self.GetGrandParent().GetParent().FillMainMenu(menu,addhelp=False) # add the data tree menu items to the main menu
     1629        self.GetTopLevelParent().FillMainMenu(menu,addhelp=False) # add the data tree menu items to the main menu
    16301630        if not empty:
    16311631            menu.Append(wx.Menu(title=''),title='|') # add a separator
     
    18261826                        ):
    18271827            objlist = []
    1828             for obj in self.parent.GetParent().GetParent().exporterlist:
     1828            for obj in self.parent.GetTopLevelParent().exporterlist:
    18291829                if lbl.lower() in obj.exporttype:
    18301830                    try:
     
    23762376        # setup a cascade menu for the formats that have been defined
    23772377        self.ReImportMenuId = {}  # points to readers for each menu entry
    2378         for reader in self.parent.GetParent().GetParent().ImportPhaseReaderlist:
     2378        for reader in self.parent.GetTopLevelParent().ImportPhaseReaderlist:
    23792379            item = submenu.Append(
    23802380                wx.ID_ANY,help=reader.longFormatName,
     
    25992599        self.SetBackgroundColour(wx.WHITE)
    26002600        self.DestroyChildren()
    2601 #        self.SetSize(self.GetParent().GetSize())
     2601        self.SetSize(self.GetParent().GetSize())
     2602        self.SetAutoLayout(True)
     2603        self.SetupScrolling()
    26022604       
    26032605#TODO - remove         
     
    26982700    G2frame.SetLabel(G2frame.GetLabel().split('||')[0]+' || '+'Comments')
    26992701    G2frame.dataWindow.ClearData()
    2700     G2frame.dataWindow.SetupScrolling()
     2702#    G2frame.dataWindow.SetupScrolling()
    27012703    text = wx.TextCtrl(parent=G2frame.dataWindow,size=G2frame.dataWindow.GetSize(),
    27022704        style=wx.TE_MULTILINE|wx.TE_READONLY|wx.TE_DONTWRAP)
Note: See TracChangeset for help on using the changeset viewer.