Skip to content
Permalink
Browse files

Squash merge pull request #529

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 16c2b48fa5cbc85c229b9c87f96534e33535b649
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/codegen/luacg.cpp
  2. +1 −1 src/codegen/phpcg.cpp
  3. +1 −1 src/codegen/pythoncg.cpp
@@ -105,7 +105,7 @@ wxString LuaTemplateParser::ValueToCode( PropertyType type, wxString value )
}
case PT_WXPARENT_CP:
{
result = value + wxT(":GetPane()");
result = wxT("NS.") + value + wxT(":GetPane()");
break;
}
case PT_WXSTRING:
@@ -99,7 +99,7 @@ wxString PHPTemplateParser::ValueToCode( PropertyType type, wxString value )
}
case PT_WXPARENT_CP:
{
result = wxT("$") + value + wxT("->GetPane()");
result = wxT("$this->") + value + wxT("->GetPane()");
break;
}
case PT_WXSTRING:
@@ -102,7 +102,7 @@ wxString PythonTemplateParser::ValueToCode( PropertyType type, wxString value )
}
case PT_WXPARENT_CP:
{
result = value + wxT(".GetPane()");
result = wxT("self.") + value + wxT(".GetPane()");
break;
}
case PT_WXSTRING:

0 comments on commit 16c2b48

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