def oncolor(self, event):
rst = None
dlg = wx.ColourDialog(self)
dlg.GetColourData().SetChooseFull(True)
if dlg.ShowModal() == wx.ID_OK:
rst = dlg.GetColourData().GetColour()
self.SetBackgroundColour(rst)
self.SetValue(rst.GetAsString(wx.C2S_HTML_SYNTAX))
self.f(event)
dlg.Destroy()
评论列表
文章目录