Changeset 2303


Ignore:
Timestamp:
Jun 2, 2016 9:52:57 AM (5 years ago)
Author:
vondreele
Message:

change ProgressDialog? expected count so AUTO_HIDE works - now no excess PB windows in a multiple image integration for 64-bit versions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimgGUI.py

    r2302 r2303  
    203203        nXBlks = (Nx-1)/blkSize+1
    204204        nYBlks = (Ny-1)/blkSize+1
    205         Nup = nXBlks*nYBlks*3+3
    206         dlg = wx.ProgressDialog("Elapsed time","2D image integration",Nup,
     205        Nup = nXBlks*nYBlks*3+1     #exact count expected so AUTO_HIDE works!
     206        pdlg = wx.ProgressDialog("Elapsed time","2D image integration",Nup,
    207207            style = wx.PD_ELAPSED_TIME|wx.PD_AUTO_HIDE)
    208208        try:
    209209            sumImg = GetImageZ(G2frame,data)
    210             G2frame.Integrate = G2img.ImageIntegrate(sumImg,data,masks,blkSize,dlg)
     210            G2frame.Integrate = G2img.ImageIntegrate(sumImg,data,masks,blkSize,pdlg)
    211211            del sumImg  #force cleanup
    212212            Id = G2IO.SaveIntegration(G2frame,G2frame.PickId,data,(event is None))
     
    215215            G2frame.PatternTree.Expand(Id)
    216216        finally:
    217             dlg.Destroy()
     217            pdlg.Destroy()
    218218        for item in G2frame.MakePDF: item.Enable(True)
    219219       
Note: See TracChangeset for help on using the changeset viewer.