Skip to content

Commit

Permalink
Squash merge pull request #529
Browse files Browse the repository at this point in the history
Correct code generation for using wxCollapsiblePane as parent element in Python, PHP and Lua
  • Loading branch information
JacoboSpain authored and sodevel committed Jun 13, 2019
1 parent 2f3c2ca commit 16c2b48
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/codegen/luacg.cpp
Expand Up @@ -105,7 +105,7 @@ wxString LuaTemplateParser::ValueToCode( PropertyType type, wxString value )
} }
case PT_WXPARENT_CP: case PT_WXPARENT_CP:
{ {
result = value + wxT(":GetPane()"); result = wxT("NS.") + value + wxT(":GetPane()");
break; break;
} }
case PT_WXSTRING: case PT_WXSTRING:
Expand Down
2 changes: 1 addition & 1 deletion src/codegen/phpcg.cpp
Expand Up @@ -99,7 +99,7 @@ wxString PHPTemplateParser::ValueToCode( PropertyType type, wxString value )
} }
case PT_WXPARENT_CP: case PT_WXPARENT_CP:
{ {
result = wxT("$") + value + wxT("->GetPane()"); result = wxT("$this->") + value + wxT("->GetPane()");
break; break;
} }
case PT_WXSTRING: case PT_WXSTRING:
Expand Down
2 changes: 1 addition & 1 deletion src/codegen/pythoncg.cpp
Expand Up @@ -102,7 +102,7 @@ wxString PythonTemplateParser::ValueToCode( PropertyType type, wxString value )
} }
case PT_WXPARENT_CP: case PT_WXPARENT_CP:
{ {
result = value + wxT(".GetPane()"); result = wxT("self.") + value + wxT(".GetPane()");
break; break;
} }
case PT_WXSTRING: case PT_WXSTRING:
Expand Down

0 comments on commit 16c2b48

Please sign in to comment.