From 91efdbfe8aa71e794fa56d459c4d128f9fd41039 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Mon, 20 Apr 2015 09:31:37 -0300 Subject: [PATCH] added a icon to the watershed configuration --- icons/configuration.png | Bin 0 -> 614 bytes invesalius/gui/task_slice.py | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 icons/configuration.png diff --git a/icons/configuration.png b/icons/configuration.png new file mode 100644 index 0000000..a857ddd Binary files /dev/null and b/icons/configuration.png differ diff --git a/invesalius/gui/task_slice.py b/invesalius/gui/task_slice.py index 8e10752..a44ec1d 100644 --- a/invesalius/gui/task_slice.py +++ b/invesalius/gui/task_slice.py @@ -779,7 +779,9 @@ class WatershedTool(EditionTools): self.ww_wl_cbox = ww_wl_cbox # Line 6 - self.btn_wconfig = wx.Button(self, -1, "C", size=(48, -1)) + bmp = wx.Bitmap("../icons/configuration.png", wx.BITMAP_TYPE_PNG) + self.btn_wconfig = wx.BitmapButton(self, -1, bitmap=bmp, + size=(bmp.GetWidth()+10, bmp.GetHeight()+10)) self.btn_exp_watershed = wx.Button(self, -1, _('Expand watershed to 3D')) sizer_btns = wx.BoxSizer(wx.HORIZONTAL) -- libgit2 0.21.2