Changeset 719


Ignore:
Timestamp:
Aug 16, 2012 2:21:08 PM (11 years ago)
Author:
vondreele
Message:

fix up atom color change items

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r714 r719  
    17701770                    FindBondsDraw()
    17711771                elif drawAtoms.GetColLabelValue(c) == 'Color':
    1772                     color = atomData[r][c]
    1773                     colors = wx.ColourData()
    1774                     colors.SetChooseFull(True)
    1775                     colors.SetCustomColour(0,color)
    1776                     colors.SetColour(color)
    1777                     dlg = wx.ColourDialog(G2frame,colors)
    1778                     dlg.GetColourData().SetCustomColour(0,color)
     1772                    dlg = wx.ColourDialog(G2frame)
    17791773                    if dlg.ShowModal() == wx.ID_OK:
    17801774                        color = dlg.GetColourData().GetColour()
     
    17861780                        drawAtoms.SetAttr(i,cs+2,attr)
    17871781                    dlg.Destroy()
    1788                     event.StopPropagation()
     1782#                    event.StopPropagation()
    17891783                    UpdateDrawAtoms()
    17901784            G2plt.PlotStructure(G2frame,data)
     
    19131907            colors = wx.ColourData()
    19141908            colors.SetChooseFull(True)
    1915             for i,color in enumerate(atmColors):
    1916                 colors.SetCustomColour(i,color)
    1917             dlg = wx.ColourDialog(G2frame,colors)
     1909            dlg = wx.ColourDialog(G2frame)
    19181910            if dlg.ShowModal() == wx.ID_OK:
    19191911                for i in range(len(atmColors)):                   
    1920                     atmColors[i] = dlg.GetColourData().GetCustomColour(i)
     1912                    atmColors[i] = dlg.GetColourData().GetColour()
    19211913                colorDict = dict(zip(atmTypes,atmColors))
    19221914                for r in indx:
Note: See TracChangeset for help on using the changeset viewer.