From 22057708b89f0c477880f3dc9663262db7fac157 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 27 Oct 2012 03:16:29 +0000 Subject: [PATCH] Fix wxSTCNameStr, add a test for stc.pi git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- etg/_stc.py | 2 +- unittests/test_pi_import.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/etg/_stc.py b/etg/_stc.py index 965c5f8a..feea6a77 100644 --- a/etg/_stc.py +++ b/etg/_stc.py @@ -63,7 +63,7 @@ def run(): c = module.find('wxStyledTextCtrl') assert isinstance(c, etgtools.ClassDef) tools.fixWindowClass(c, False) - module.addGlobalStr('wxSTCNameStr') + module.addGlobalStr('wxSTCNameStr', c) c.find('GetCurLine.linePos').out = True diff --git a/unittests/test_pi_import.py b/unittests/test_pi_import.py index 1b4c93f8..d7c7622f 100644 --- a/unittests/test_pi_import.py +++ b/unittests/test_pi_import.py @@ -36,6 +36,9 @@ class PIImportTest(unittest.TestCase): #def test_adv_pi(self): # self.runPI('adv.pi') + + def test_stc_pi(self): + self.runPI('stc.pi') #---------------------------------------------------------------------------