summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cefcc57)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44039
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
dlg.Destroy()
def OnOtherColor(self, event):
dlg.Destroy()
def OnOtherColor(self, event):
- dlg = wx.ColourDialog(frame)
+ dlg = wx.ColourDialog(self)
dlg.GetColourData().SetChooseFull(True)
if dlg.ShowModal() == wx.ID_OK:
self.sketch.SetColor(dlg.GetColourData().GetColour())
dlg.GetColourData().SetChooseFull(True)
if dlg.ShowModal() == wx.ID_OK:
self.sketch.SetColor(dlg.GetColourData().GetColour())
def OnSetColour(self, event):
color = self.colorMap[event.GetId()]
def OnSetColour(self, event):
color = self.colorMap[event.GetId()]
- if color != self.sketch.color:
+ if color != self.sketch.color and self.sketch.color in self.colorButtons:
self.colorButtons[self.sketch.color].SetToggle(False)
self.sketch.SetColor(color)
self.colorButtons[self.sketch.color].SetToggle(False)
self.sketch.SetColor(color)