Skip to content
Browse files

Bind the wxEVT_UPDATE_UI Event at the wxStaticBox of the wxStaticBoxS…

…izer instead at the sizer in Python and PHP

This is analog to C++, a sizer cannot bind events.
  • Loading branch information...
sodevel committed Aug 19, 2019
1 parent 6c10fe6 commit 8b4b0a4d8fb75fa8711e8f388afed2627868cd17
Showing with 2 additions and 2 deletions.
  1. +1 −1 output/plugins/layout/xml/layout.phpcode
  2. +1 −1 output/plugins/layout/xml/layout.pythoncode
@@ -57,7 +57,7 @@ PHP code generation writen by

<templates class="wxStaticBoxSizer">
<template name="construction">@$$name = new wxStaticBoxSizer( new wxStaticBox( #wxparent $name, $id, $label ), $orient ); #nl</template>
<template name="evt_connect_OnUpdateUI">$name->Connect( wxEVT_UPDATE_UI, #handler );</template>
<template name="evt_connect_OnUpdateUI">$name->GetStaticBox()->Connect->( wxEVT_UPDATE_UI, #handler );</template>

<templates class="wxGridSizer">
@@ -57,7 +57,7 @@ Python code generation writen by

<templates class="wxStaticBoxSizer">
<template name="construction">$name = wx.StaticBoxSizer( wx.StaticBox( #wxparent $name, $id, $label ), $orient ) #nl</template>
<template name="evt_connect_OnUpdateUI">$name.Bind( wx.EVT_UPDATE_UI, #handler )</template>
<template name="evt_connect_OnUpdateUI">$name.GetStaticBox().Bind( wx.EVT_UPDATE_UI, #handler )</template>

<templates class="wxGridSizer">

0 comments on commit 8b4b0a4

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