Skip to content
Permalink
Browse files

Merge pull request #585 from ellitedev/add_tool_remove

Replace deprecated function AddLabelTool with AddTool in Python code generation
  • Loading branch information
sodevel committed Jan 28, 2020
2 parents 9a4573b + e411ac5 commit b5bbc2cd09b894f60637ae06ec664ba1e3e6e356
Showing with 2 additions and 2 deletions.
  1. +2 −2 output/plugins/common/xml/menutoolbar.pythoncode
@@ -278,7 +278,7 @@ Python code generation writen by
@{
#ifparentclassnotequal "wxAuiToolBar"
@{
self.$name = self.#parent $name.AddLabelTool( $id, $label, $bitmap, wx.NullBitmap, $kind, $tooltip, $statusbar, None )
self.$name = self.#parent $name.AddTool( $id, $label, $bitmap, wx.NullBitmap, $kind, $tooltip, $statusbar, None )
@}
#ifparentclassequal "wxAuiToolBar"
@{
@@ -300,7 +300,7 @@ Python code generation writen by
@}
#ifparenttypeequal "toolbar_form"
@{
self.$name = self.AddLabelTool( $id, $label, $bitmap, wx.NullBitmap, $kind, $tooltip, $statusbar, None )
self.$name = self.AddTool( $id, $label, $bitmap, wx.NullBitmap, $kind, $tooltip, $statusbar, None )
@}
</template>
<template name="evt_connect_OnToolClicked">self.Bind( wx.EVT_TOOL, #handler, id = self.$name.GetId() )</template>

0 comments on commit b5bbc2c

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