Merge pull request #948 from SimoB/patch-1

Missing tool_id parameter in AddToggleTool
This commit is contained in:
Robin Dunn
2018-08-04 16:38:01 -07:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -86,6 +86,9 @@ Changes in this release include the following:
* Fix TypeError in wx.lib.throbber. (#924)
* Fix missing parameter tool_id in
wx.lib.agw.ribbon.toolbar.RibbonToolBar.AddToggleTool. (#947)

View File

@@ -297,7 +297,7 @@ class RibbonToolBar(RibbonControl):
return self.InsertTool(pos, tool_id, bitmap, wx.NullBitmap, help_string, RIBBON_BUTTON_HYBRID, None)
def AddToggleTool(self, bitmap, help_string=""):
def AddToggleTool(self, tool_id, bitmap, help_string=""):
"""
Add a toggle tool to the tool bar (simple version).