Changeset 922
- Timestamp:
- May 17, 2013 4:15:28 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r916 r922 10 10 ''' 11 11 *GSASIIphsGUI: Phase GUI* 12 ========================= 12 ------------------------- 13 13 14 Module to create the GUI for display of phase information 14 15 in the data display window when a phase is selected. … … 2677 2678 viewDir.Bind(wx.EVT_TEXT_ENTER,OnViewDir) 2678 2679 viewDir.Bind(wx.EVT_KILL_FOCUS,OnViewDir) 2680 G2frame.dataDisplay.viewDir = viewDir 2679 2681 lineSizer.Add(viewDir,0,wx.ALIGN_CENTER_VERTICAL) 2680 2682 showSizer.Add(lineSizer) … … 4433 4435 G2gd.SetDataMenuBar(G2frame,G2frame.dataFrame.DataDrawOptions) 4434 4436 UpdateDrawOptions() 4435 G2plt.PlotStructure(G2frame,data) 4437 #G2plt.PlotStructure(G2frame,data) 4438 wx.CallAfter(G2plt.PlotStructure,G2frame,data) 4436 4439 elif text == 'Draw Atoms': 4437 4440 G2gd.SetDataMenuBar(G2frame,G2frame.dataFrame.DrawAtomsMenu) … … 4483 4486 G2frame.dataFrame.Bind(wx.EVT_MENU, OnPeaksClear, id=G2gd.wxID_PEAKSCLEAR) 4484 4487 FillMapPeaksGrid() 4485 G2plt.PlotStructure(G2frame,data) 4488 #G2plt.PlotStructure(G2frame,data) 4489 wx.CallAfter(G2plt.PlotStructure,G2frame,data) 4486 4490 elif text == 'Texture': 4487 4491 G2gd.SetDataMenuBar(G2frame,G2frame.dataFrame.TextureMenu) -
trunk/GSASIIplot.py
r910 r922 2881 2881 if page: 2882 2882 if G2frame.dataDisplay.GetPageText(page) == 'Draw Options': 2883 panel = G2frame.dataDisplay.GetPage(page).GetChildren()[0].GetChildren() 2884 names = [child.GetName() for child in panel] 2885 panel[names.index('viewDir')].SetValue('%.3f %.3f %.3f'%(VD[0],VD[1],VD[2])) 2883 G2frame.dataDisplay.viewDir.SetValue('%.3f %.3f %.3f'%(VD[0],VD[1],VD[2])) 2886 2884 2887 2885 def SetMapPeaksText(mapPeaks):
Note: See TracChangeset
for help on using the changeset viewer.