Changeset 1510 for branch/logging/GSASII.py
- Timestamp:
- Oct 1, 2014 4:14:25 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branch/logging/GSASII.py
r1509 r1510 76 76 import GSASIIobj as G2obj 77 77 import GSASIIlattice as G2lat 78 import GSASIIlog as log 78 79 79 80 #wx inspector - use as needed … … 124 125 ''' 125 126 def MenuBinding(self,event): 126 import log127 127 log.InvokeMenuCommand(event.GetId(),self,event) 128 128 … … 130 130 '''Override the Bind() function so that we can wrap calls that will be logged. 131 131 ''' 132 import log133 132 #print 'main frame bind',handler 134 133 if eventtype == wx.EVT_MENU and 'id' in kwargs: … … 1626 1625 1627 1626 def OnMacroRecordStatus(self,event,setvalue=None): 1628 import log1629 1627 nextvalue = log.ShowLogStatus() != True 1630 1628 if setvalue is not None: … … 1640 1638 1641 1639 def _init_Macro(self): 1642 import log1643 1640 menu = self.MacroMenu 1644 1641 item = menu.Append( … … 1653 1650 kind=wx.ITEM_NORMAL,text='Show log') 1654 1651 def OnShowLog(event): 1655 import log1656 1652 print 70*'=' 1657 1653 print 'List of logged actions' … … 1671 1667 kind=wx.ITEM_NORMAL,text='Save log') 1672 1668 def OnSaveLog(event): 1673 import log1674 1669 import cPickle 1675 1670 defnam = os.path.splitext( … … 1703 1698 def OnLoadLog(event): 1704 1699 # this appends. Perhaps we should ask to clear? 1705 import log1706 1700 import cPickle 1707 1701 defnam = os.path.splitext( … … 1979 1973 1980 1974 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 1983 1976 self.PatternTree = G2gd.G2TreeCtrl(id=wxID_PATTERNTREE, 1984 1977 parent=self.mainPanel, pos=wx.Point(0, 0),style=wx.TR_DEFAULT_STYLE )
Note: See TracChangeset
for help on using the changeset viewer.