Changeset 719
- Timestamp:
- Aug 16, 2012 2:21:08 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r714 r719 1770 1770 FindBondsDraw() 1771 1771 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) 1779 1773 if dlg.ShowModal() == wx.ID_OK: 1780 1774 color = dlg.GetColourData().GetColour() … … 1786 1780 drawAtoms.SetAttr(i,cs+2,attr) 1787 1781 dlg.Destroy() 1788 event.StopPropagation()1782 # event.StopPropagation() 1789 1783 UpdateDrawAtoms() 1790 1784 G2plt.PlotStructure(G2frame,data) … … 1913 1907 colors = wx.ColourData() 1914 1908 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) 1918 1910 if dlg.ShowModal() == wx.ID_OK: 1919 1911 for i in range(len(atmColors)): 1920 atmColors[i] = dlg.GetColourData().GetC ustomColour(i)1912 atmColors[i] = dlg.GetColourData().GetColour() 1921 1913 colorDict = dict(zip(atmTypes,atmColors)) 1922 1914 for r in indx:
Note: See TracChangeset
for help on using the changeset viewer.