def onOpenColorDialog(self, event):
"""
Creates and opens the wx.ColourDialog
"""
with wx.ColourDialog(self) as dlg:
if dlg.ShowModal() == wx.ID_OK:
data = dlg.GetColourData()
color = str(data.GetColour().Get())
print 'You selected: %s\n' % color
builtin_context.py 文件源码
python
阅读 22
收藏 0
点赞 0
评论 0
评论列表
文章目录