Changeset 1281


Ignore:
Timestamp:
Apr 17, 2014 4:09:14 PM (8 years ago)
Author:
vondreele
Message:

fix a problem with plot focus change event & SASD Model GUIs

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIgrid.py

    r1277 r1281  
    41034103        data = G2frame.PatternTree.GetItemPyData(item)
    41044104        G2pdG.UpdateModelsGrid(G2frame,data)
    4105         G2plt.PlotPatterns(G2frame,plotType='SASD')
    41064105        if len(data['Size']['Distribution']):
    41074106            G2plt.PlotSASDSizeDist(G2frame)
     4107        G2plt.PlotPatterns(G2frame,plotType='SASD')
    41084108    elif G2frame.PatternTree.GetItemText(item) == 'Substances':
    41094109        G2frame.PatternId = G2frame.PatternTree.GetItemParent(item)
  • trunk/GSASIIplot.py

    r1274 r1281  
    689689        G2frame.itemPicked = None   
    690690
    691     xylim = []
    692691    try:
    693692        plotNum = G2frame.G2plotNB.plotList.index('Powder Patterns')
     
    712711        Page.canvas.mpl_connect('button_release_event', OnRelease)
    713712        Page.canvas.mpl_connect('button_press_event',OnPress)
    714     Page.SetFocus()
     713    if plottype == 'PWDR':  # avoids a very nasty clash with KILL_FOCUS in SASD TextCtrl?
     714        Page.SetFocus()
    715715    G2frame.G2plotNB.status.DestroyChildren()
    716716    if G2frame.Contour:
     
    10221022        Plot.set_xlim(xylim[0])
    10231023        Plot.set_ylim(xylim[1])
    1024         xylim = []
     1024#        xylim = []
    10251025        Page.toolbar.push_current()
    10261026        Page.toolbar.draw()
Note: See TracChangeset for help on using the changeset viewer.