chiark / gitweb /
Fix for new temperature button name
authorSteven Abadie <steven@alephobjects.com>
Tue, 30 Dec 2014 15:12:55 +0000 (08:12 -0700)
committerSteven Abadie <steven@alephobjects.com>
Tue, 30 Dec 2014 15:12:55 +0000 (08:12 -0700)
Cura/gui/printWindow.py

index 947f6643961d6576b6ba365afb724671937fb21c..26ec7aa3ba017120eda32d8c0c985c8a606d8c78 100644 (file)
@@ -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