Changeset 759
- Timestamp:
- Sep 17, 2012 2:38:13 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r758 r759 2443 2443 SetPeakRoll(dirDict[key]) 2444 2444 SetMapPeaksText(mapPeaks) 2445 Draw( )2445 Draw('key') 2446 2446 2447 2447 def GetTruePosition(xy,Add=False): … … 2511 2511 Q = drawingData['Quaternion'] 2512 2512 G2frame.G2plotNB.status.SetStatusText('New quaternion: %.2f+, %.2fi+ ,%.2fj+, %.2fk'%(Q[0],Q[1],Q[2],Q[3]),1) 2513 Draw( )2513 Draw('move') 2514 2514 2515 2515 def OnMouseWheel(event): … … 2526 2526 panel[names.index('cameraPos')].SetLabel('Camera Position: '+'%.2f'%(drawingData['cameraPos'])) 2527 2527 panel[names.index('cameraSlider')].SetValue(drawingData['cameraPos']) 2528 Draw( )2528 Draw('wheel') 2529 2529 2530 2530 def getSelection(): … … 2885 2885 RenderDots(XYZ,RC) 2886 2886 2887 def Draw(): 2887 def Draw(caller=''): 2888 #useful debug? 2889 # if caller: 2890 # print caller 2891 # end of useful debug 2888 2892 mapData = generalData['Map'] 2889 2893 pageName = '' … … 3059 3063 3060 3064 def OnSize(event): 3061 Draw( )3062 3063 def OnFocus(event): 3064 Draw( )3065 Draw('size') 3066 3067 def OnFocus(event): #not needed?? Bind commented out below 3068 Draw('focus') 3065 3069 3066 3070 try: … … 3089 3093 Page.canvas.Bind(wx.EVT_MOTION, OnMouseMove) 3090 3094 Page.canvas.Bind(wx.EVT_SIZE, OnSize) 3091 Page.canvas.Bind(wx.EVT_SET_FOCUS, OnFocus)3095 # Page.canvas.Bind(wx.EVT_SET_FOCUS, OnFocus) 3092 3096 Page.camera['position'] = drawingData['cameraPos'] 3093 3097 Page.camera['viewPoint'] = np.inner(Amat,drawingData['viewPoint'][0]) 3094 3098 Page.camera['backColor'] = np.array(list(drawingData['backColor'])+[0,])/255. 3095 3099 Page.canvas.SetCurrent() 3096 Draw( )3097 3100 Draw('main') 3101
Note: See TracChangeset
for help on using the changeset viewer.