Permalink
Browse files

Modified python template for BitmapComboBox to comply with changes ma…

…de in wxPython version 4
  • Loading branch information...
Jorge Moraleda
Jorge Moraleda committed Dec 15, 2018
1 parent 4cbc00a commit 97812736c353fe6e731baf96e209fff2d5bf43b8
Showing with 2 additions and 2 deletions.
  1. +2 −2 output/plugins/common/xml/common.pythoncode
@@ -117,15 +117,15 @@ Python code generation written by

<templates class="wxBitmapComboBox">
<template name="construction">
self.$name = wx.combo.BitmapComboBox( #wxparent $name, $id, $value, $pos, $size, "", $style #ifnotnull $window_style @{ |$window_style @} #ifnotnull $window_name @{, wx.DefaultValidator, $window_name @} )
self.$name = wx.adv.BitmapComboBox( #wxparent $name, $id, $value, $pos, $size, [], $style #ifnotnull $window_style @{ |$window_style @} #ifnotnull $window_name @{, wx.DefaultValidator, $window_name @} )
#foreach $choices
@{ self.$name.Append( #pred.partition(":")[2], wx.Image.ConvertToBitmap(wx.Image(#pred.partition(":")[0]))); @}
</template>
<template name="settings">#ifnotequal $selection "-1" @{self.$name.SetSelection( $selection )@}</template>
<template name="evt_connect_OnCombobox">self.$name.Bind( wx.EVT_COMBOBOX, #handler )</template>
<template name="evt_connect_OnText">self.$name.Bind( wx.EVT_TEXT, #handler )</template>
<template name="evt_connect_OnTextEnter">self.$name.Bind( wx.EVT_TEXT_ENTER, #handler )</template>
<template name="include">import wx.combo</template>
<template name="include">import wx.adv</template>
</templates>

<templates class="wxListBox">

0 comments on commit 9781273

Please sign in to comment.