Ignore:
Timestamp:
Oct 1, 2014 4:14:25 PM (7 years ago)
Author:
toby
Message:

logging pretty well ready to roll

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branch/logging/GSASIIgrid.py

    r1509 r1510  
    4545import GSASIIobj as G2obj
    4646import GSASIIexprGUI as G2exG
    47 import log
     47import GSASIIlog as log
    4848
    4949# trig functions in degrees
     
    171171    def __init__(self,parent=None,*args,**kwargs):
    172172        super(self.__class__,self).__init__(parent=parent,*args,**kwargs)
    173         log.LogInfo['G2frame'] = self.G2frame = parent.GetParent()
     173        self.G2frame = parent.GetParent()
    174174        self.root = self.AddRoot('Loaded Data: ')
    175175        self.SelectionChanged = None
     
    198198                if textlist[0] == "Phases" and len(textlist) > 1:
    199199                    textlist[1] = self.GetRelativePhaseNum(textlist[1])
    200                 log.G2logList.append(log.TreeLogEntry(textlist))
     200                log.MakeTreeLog(textlist)
    201201            self.SelectionChanged(event)
    202202
     
    318318    def onPress(self,event):
    319319        'create log event and call handler'
    320         G2logList.append(log.ButtonLogEntry(self.locationcode,self.label))
     320        log.MakeButtonLog(self.locationcode,self.label)
    321321        self.handler(event)
    322322
     
    35973597
    35983598    def PageChangeEvent(self,event):
    3599         import log
    36003599        G2frame = self.parent.G2frame
    36013600        page = event.GetSelection()
    36023601        if self.PageChangeHandler:
    36033602            if log.LogInfo['Logging']:
    3604                 log.G2logList.append(log.TabLogEntry(
     3603                log.MakeTabLog(
    36053604                    G2frame.dataFrame.GetTitle(),
    36063605                    G2frame.dataDisplay.GetPageText(page)
    3607                 ))
     3606                    )
    36083607            self.PageChangeHandler(event)
    36093608           
     
    41354134
    41364135    # DEBUG code: stick testing button on Controls page
    4137     import log
    41384136    def TestButton(event):
    41394137        print 'TestButton'
Note: See TracChangeset for help on using the changeset viewer.