Skip to content

Commit d49f17d

Browse files
committed
Add another CallAfter so that phase tabs get drawn after a refinement
1 parent 2ee8bb6 commit d49f17d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

GSASII/GSASIIphsGUI.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13411,7 +13411,10 @@ def rbKeyPress(event):
1341113411
ind = Pages.index(G2frame.lastSelectedPhaseTab)
1341213412
if ind:
1341313413
UpdateGeneral(SkipDraw=ind)
13414-
G2frame.phaseDisplay.SetSelection(ind)
13414+
#G2frame.phaseDisplay.SetSelection(ind)
13415+
# on windows, need to wait for previous to finish before
13416+
# going to selected tab
13417+
wx.CallAfter(G2frame.phaseDisplay.SetSelection,ind)
1341513418
return
1341613419
ChangePage(0)
1341713420

0 commit comments

Comments
 (0)