Changeset 1633 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Jan 22, 2015 10:09:11 AM (8 years ago)
Author:
vondreele
Message:

fix wx 3.0.x problem with Size on Progress bars in G2phsGUI & G2pwdGUI
4D charge flipping fixes - allow shifting 4D contour map L/R

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r1629 r1633  
    20812081            waveSizer.Add(waveHead)
    20822082            if len(waveBlk):
    2083                 CSI = G2spc.GetSSfxuinel(xyz,uij,SGData,SSGData)
    20842083                for iwave,wave in enumerate(waveBlk):
     2084                    if not iwave:
     2085                        CSI = G2spc.GetSSfxuinel(waveType,xyz,uij,SGData,SSGData)
     2086                    else:
     2087                        CSI = G2spc.GetSSfxuinel('Fourier',xyz,uij,SGData,SSGData)
    20852088                    waveName = 'Fourier'
    20862089                    if Stype == 'Sfrac':
     
    21902193                        if generalData['Type'] != 'magnetic' and Stype == 'Smag':
    21912194                            break
    2192                         mainSizer.Add(WaveSizer(atom[-1][SS]['waveType'],atom[-1][SS][Stype],Stype,typeNames[Stype],Labels[Stype]))
    2193                        
     2195                        mainSizer.Add(WaveSizer(atom[-1][SS]['waveType'],atom[-1][SS][Stype],Stype,typeNames[Stype],Labels[Stype]))                       
    21942196        SetPhaseWindow(G2frame.dataFrame,waveData,mainSizer)
    21952197                       
     
    21982200        mapData = generalData['4DmapData']
    21992201        reflName = mapData['RefList']
     2202        generalData['Map']['Flip'] = False
    22002203        if not reflName:
    22012204            G2frame.ErrorDialog('Fourier map','No reflections defined for Fourier map')
     
    50345037            screenSize = wx.ClientDisplayRect()
    50355038            Size = pgbar.GetSize()
    5036             Size = (int(Size[0]*1.2),Size[1]) # increase size a bit along x
    5037             pgbar.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5))
    5038             pgbar.SetSize(Size)
     5039            if 50 < Size[0] < 500: # sanity check on size, since this fails w/Win & wx3.0
     5040                pgbar.SetSize((int(Size[0]*1.2),Size[1])) # increase size a bit along x
     5041                pgbar.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5))
    50395042        else:
    50405043            pgbar = None
     
    56265629        screenSize = wx.ClientDisplayRect()
    56275630        Size = pgbar.GetSize()
    5628         Size = (int(Size[0]*1.2),Size[1]) # increase size a bit along x
    5629         pgbar.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5))
    5630         pgbar.SetSize(Size)
     5631        if 50 < Size[0] < 500: # sanity check on size, since this fails w/Win & wx3.0
     5632            pgbar.SetSize((int(Size[0]*1.2),Size[1])) # increase size a bit along x
     5633            pgbar.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5))
    56315634        try:
    56325635            newMap,new4Dmap = G2mth.SSChargeFlip(data,reflDict,pgbar)
     
    56745677        screenSize = wx.ClientDisplayRect()
    56755678        Size = pgbar.GetSize()
    5676         Size = (int(Size[0]*1.2),Size[1]) # increase size a bit along x
    5677         pgbar.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5))
    5678         pgbar.SetSize(Size)
     5679        if 50 < Size[0] < 500: # sanity check on size, since this fails w/Win & wx3.0
     5680            pgbar.SetSize((int(Size[0]*1.2),Size[1])) # increase size a bit along x
     5681            pgbar.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5))
    56795682        try:
    56805683            mapData.update(G2mth.ChargeFlip(data,reflDict,pgbar))
Note: See TracChangeset for help on using the changeset viewer.