Files
Phoenix/docs/sphinx/rest_substitutions/snippets/python/converted/wx.Metafile.SetClipboard.1.py
Robin Dunn f32cb4669f Merge pull request #845 from RobinD42/fix-issue811
Enable wrapping wxGraphicsContext::Create(metaFileDC)
(cherry picked from commit 6c3ce18e17)
2018-05-05 22:22:05 -07:00

9 lines
170 B
Python

dc = wx.MetafileDC()
if dc.IsOk():
self.Draw(dc)
mf = dc.Close()
if mf:
mf.SetClipboard(dc.MaxX() + 10, dc.MaxY() + 10)