Changeset 1633 for trunk/GSASIIpwdGUI.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/GSASIIpwdGUI.py

    r1623 r1633  
    452452                screenSize = wx.ClientDisplayRect()
    453453                Size = dlg.GetSize()
    454                 dlg2.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5))
     454                if 50 < Size[0] < 500: # sanity check on size, since this fails w/Win & wx3.0
     455                    dlg2.SetSize((int(Size[0]*1.2),Size[1])) # increase size a bit along x
     456                    dlg2.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5))
    455457                try:
    456458                    peaks['sigDict'],result,sig,Rvals,varyList,parmDict,fullvaryList,badVary = G2pwd.DoPeakFit(FitPgm,peaks['peaks'],
     
    511513        screenSize = wx.ClientDisplayRect()
    512514        Size = dlg.GetSize()
    513         dlg.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5))
     515        if 50 < Size[0] < 500: # sanity check on size, since this fails w/Win & wx3.0
     516            dlg.SetSize((int(Size[0]*1.2),Size[1])) # increase size a bit along x
     517            dlg.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5))
    514518        try:
    515519            peaks['sigDict'] = G2pwd.DoPeakFit(FitPgm,peaks['peaks'],background,limits,inst,inst2,data,[],oneCycle,controls,dlg)[0]
Note: See TracChangeset for help on using the changeset viewer.