Skip to content
Permalink
Browse files

Add simple a method to get the name of the ++ GraphicsRenderer class

  • Loading branch information...
RobinD42 committed Aug 1, 2019
1 parent 02236d9 commit 8e10493a4daeafa54c6a387ccdf97d1cb657a10b
Showing with 5 additions and 0 deletions.
  1. +5 −0 etg/graphics.py
@@ -220,6 +220,11 @@ def markCreateFactories(klass):
# TODO: support this?
c.find('CreateContextFromNativeHDC').ignore()

c.addPyMethod('GetType', '(self)',
doc="Returns the name of the GraphicsRenderer class.",
body="return self.GetClassInfo().GetClassName()")



c.find('GetGDIPlusRenderer').ignore()
c.addCppMethod('wxGraphicsRenderer*', 'GetGDIPlusRenderer', '()', isStatic=True,

0 comments on commit 8e10493

Please sign in to comment.
You can’t perform that action at this time.