Changeset 1500 for trunk/GSASII.py
 Timestamp:
 Sep 17, 2014 3:59:40 PM (8 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/GSASII.py
r1499 r1500 88 88 # else should care much about this. 89 89 sys.stderr = sys.stdout 90 91 # useful degree trig functions92 sind = lambda x: math.sin(x*math.pi/180.)93 cosd = lambda x: math.cos(x*math.pi/180.)94 tand = lambda x: math.tan(x*math.pi/180.)95 asind = lambda x: 180.*math.asin(x)/math.pi96 acosd = lambda x: 180.*math.acos(x)/math.pi97 atan2d = lambda x,y: 180.*math.atan2(y,x)/math.pi98 90 99 91 def create(parent): … … 1850 1842 self.SetMenuBar(self.GSASIIMenu) 1851 1843 self.Bind(wx.EVT_SIZE, self.OnSize) 1852 self. CreateStatusBar()1844 self.Status = self.CreateStatusBar() 1853 1845 self.mainPanel = wx.Panel(self,1) 1854 1846 … … 2009 2001 event.Allow() 2010 2002 self.EndDragId = event.GetItem() 2011 if self.ParentId != self.PatternTree.GetItemParent(self.EndDragId): 2012 print 'drag not allowed  wrong parent' 2003 try: 2004 NewParent = self.PatternTree.GetItemParent(self.EndDragId) 2005 except: 2006 self.EndDragId = self.PatternTree.GetLastChild(self.root) 2007 NewParent = self.root 2008 if self.ParentId != NewParent: 2009 self.ErrorDialog('Drag not allowed','Wrong parent for item dragged') 2013 2010 else: 2014 2011 Name,Item = self.DragData[0] … … 2916 2913 '''Calculates PDFs 2917 2914 ''' 2915 sind = lambda x: math.sin(x*math.pi/180.) 2918 2916 tth2q = lambda t,w:4.0*math.pi*sind(t/2.0)/w 2919 2917 TextList = ['All PWDR']
Note: See TracChangeset
for help on using the changeset viewer.