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/GSASII.py

    r1509 r1510  
    7676import GSASIIobj as G2obj
    7777import GSASIIlattice as G2lat
     78import GSASIIlog as log
    7879
    7980#wx inspector - use as needed
     
    124125    '''
    125126    def MenuBinding(self,event):
    126         import log
    127127        log.InvokeMenuCommand(event.GetId(),self,event)
    128128           
     
    130130        '''Override the Bind() function so that we can wrap calls that will be logged.
    131131        '''
    132         import log
    133132        #print 'main frame bind',handler
    134133        if eventtype == wx.EVT_MENU and 'id' in kwargs:
     
    16261625       
    16271626    def OnMacroRecordStatus(self,event,setvalue=None):
    1628         import log
    16291627        nextvalue = log.ShowLogStatus() != True
    16301628        if setvalue is not None:
     
    16401638
    16411639    def _init_Macro(self):
    1642         import log
    16431640        menu = self.MacroMenu
    16441641        item = menu.Append(
     
    16531650            kind=wx.ITEM_NORMAL,text='Show log')
    16541651        def OnShowLog(event):
    1655             import log
    16561652            print 70*'='
    16571653            print 'List of logged actions'
     
    16711667            kind=wx.ITEM_NORMAL,text='Save log')
    16721668        def OnSaveLog(event):
    1673             import log
    16741669            import cPickle
    16751670            defnam = os.path.splitext(
     
    17031698        def OnLoadLog(event):
    17041699            # this appends. Perhaps we should ask to clear?
    1705             import log
    17061700            import cPickle
    17071701            defnam = os.path.splitext(
     
    19791973       
    19801974        wxID_PATTERNTREE = wx.NewId()
    1981         #self.PatternTree = wx.TreeCtrl(id=wxID_PATTERNTREE,
    1982         import log
     1975        #self.PatternTree = wx.TreeCtrl(id=wxID_PATTERNTREE, # replaced for logging
    19831976        self.PatternTree = G2gd.G2TreeCtrl(id=wxID_PATTERNTREE,
    19841977            parent=self.mainPanel, pos=wx.Point(0, 0),style=wx.TR_DEFAULT_STYLE )
Note: See TracChangeset for help on using the changeset viewer.