From aa6c0a6661844a9a628eadcbc2616dd666a550d0 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 1 Aug 2019 15:26:50 -0700 Subject: [PATCH] Add simple a method to get the name of the ++ GraphicsRenderer class --- etg/graphics.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etg/graphics.py b/etg/graphics.py index 256349f3..1e2131b0 100644 --- a/etg/graphics.py +++ b/etg/graphics.py @@ -220,6 +220,11 @@ def run(): # 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,