From 6755bf540a6031e36fa0212c30f03ac63701cef1 Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Tue, 6 Dec 2016 18:25:15 -0800 Subject: [PATCH] Fix IOError: Could not find bitmap file "stock_left.xpm" --- examples/user_interfaces/embedding_in_wx4.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/user_interfaces/embedding_in_wx4.py b/examples/user_interfaces/embedding_in_wx4.py index 5270fc0c1d25..af8999afb73e 100644 --- a/examples/user_interfaces/embedding_in_wx4.py +++ b/examples/user_interfaces/embedding_in_wx4.py @@ -37,11 +37,11 @@ def __init__(self, canvas, cankill): # probably want to add your own. if 'phoenix' in wx.PlatformInfo: self.AddTool(self.ON_CUSTOM, 'Click me', - _load_bitmap('stock_left.xpm'), + _load_bitmap('back.png'), 'Activate custom contol') self.Bind(wx.EVT_TOOL, self._on_custom, id=self.ON_CUSTOM) else: - self.AddSimpleTool(self.ON_CUSTOM, _load_bitmap('stock_left.xpm'), + self.AddSimpleTool(self.ON_CUSTOM, _load_bitmap('back.png'), 'Click me', 'Activate custom contol') self.Bind(wx.EVT_TOOL, self._on_custom, id=self.ON_CUSTOM)