From 6d30096f7a8db3e847b96c678e3b505fe8d4e00c Mon Sep 17 00:00:00 2001 From: Steven Abadie Date: Tue, 30 Dec 2014 08:12:55 -0700 Subject: [PATCH] Fix for new temperature button name --- Cura/gui/printWindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cura/gui/printWindow.py b/Cura/gui/printWindow.py index 947f6643..26ec7aa3 100644 --- a/Cura/gui/printWindow.py +++ b/Cura/gui/printWindow.py @@ -156,7 +156,7 @@ class printWindowPlugin(wx.Frame): self._buttonList.append(spinner) self.Bind(wx.EVT_SPINCTRL, lambda e: run_command(spinner), spinner) - def script_addTextButton(self, r_text, g_text, b_text, r_button, g_button, b_button, text, command, data): + def script_addTextButton(self, r_text, g_text, b_text, r_button, g_button, b_button, button_text, command, data): x_text, y_text, w_text, h_text = self._getColoredRect(r_text, g_text, b_text) if x_text < 0: return @@ -169,7 +169,7 @@ class printWindowPlugin(wx.Frame): text.SetPosition((x_text, y_text)) text.SetSize((w_text, h_text)) - button = wx.Button(self, -1, _(text)) + button = wx.Button(self, -1, _(button_text)) button.SetPosition((x_button, y_button)) button.SetSize((w_button, h_button)) button.command = command -- 2.30.2