Skip to content

Commit 705ca1c

Browse files
committed
revised changes to DrawAtoms routines
1 parent 5ea2534 commit 705ca1c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

GSASII/GSASIIphsGUI.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10455,8 +10455,7 @@ def SetChoice(name,c,n=0):
1045510455
drawingData['Atoms'][r][c] = color
1045610456
drawAtoms.SetAttr(i,cs+2,attr)
1045710457
dlg.Destroy()
10458-
# UpdateDrawAtoms()
10459-
wx.CallLater(100,UpdateDrawAtoms)
10458+
UpdateDrawAtoms()
1046010459
G2plt.PlotStructure(G2frame,data)
1046110460

1046210461
def NextAtom(event):
@@ -10676,9 +10675,8 @@ def DrawAtomColor(event):
1067610675
colors.SetChooseFull(True)
1067710676
dlg = wx.ColourDialog(None,colors)
1067810677
if dlg.ShowModal() == wx.ID_OK:
10679-
color = dlg.GetColourData().GetColour()[:3]
1068010678
for i in range(len(atmColors)):
10681-
atmColors[i] = color
10679+
atmColors[i] = dlg.GetColourData().GetColour()[:3]
1068210680
colorDict = dict(zip(atmTypes,atmColors))
1068310681
for r in indx:
1068410682
color = colorDict[atomData[r][ct]]
@@ -10688,7 +10686,6 @@ def DrawAtomColor(event):
1068810686
drawAtoms.SetAttr(r,cs+2,attr)
1068910687
data['Drawing']['Atoms'][r][cs+2] = color
1069010688
dlg.Destroy()
10691-
UpdateDrawAtoms()
1069210689
drawAtoms.ClearSelection()
1069310690
G2plt.PlotStructure(G2frame,data)
1069410691

0 commit comments

Comments
 (0)