From 3ded5575843de356608610599c1d801f67bdb274 Mon Sep 17 00:00:00 2001 From: Daid Date: Sat, 24 Mar 2012 12:39:31 +0100 Subject: [PATCH] Enable print button, does not do anything useful yet. But stashing the change so I can rename to Cura --- Cura/newui/mainWindow.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cura/newui/mainWindow.py b/Cura/newui/mainWindow.py index b3fc0e1..e1b1f8c 100644 --- a/Cura/newui/mainWindow.py +++ b/Cura/newui/mainWindow.py @@ -162,10 +162,10 @@ class mainWindow(configBase.configWindowBase): # load and slice buttons. loadButton = wx.Button(self, -1, 'Load Model') sliceButton = wx.Button(self, -1, 'Slice to GCode') - #printButton = wx.Button(self, -1, 'Print GCode') + printButton = wx.Button(self, -1, 'Print GCode') self.Bind(wx.EVT_BUTTON, self.OnLoadModel, loadButton) self.Bind(wx.EVT_BUTTON, self.OnSlice, sliceButton) - #self.Bind(wx.EVT_BUTTON, self.OnPrint, printButton) + self.Bind(wx.EVT_BUTTON, self.OnPrint, printButton) #Also bind double clicking the 3D preview to load an STL file. self.preview3d.glCanvas.Bind(wx.EVT_LEFT_DCLICK, self.OnLoadModel, self.preview3d.glCanvas) @@ -178,7 +178,7 @@ class mainWindow(configBase.configWindowBase): sizer.AddGrowableRow(0) sizer.Add(loadButton, (1,1), flag=wx.RIGHT, border=5) sizer.Add(sliceButton, (1,2), flag=wx.RIGHT, border=5) - #sizer.Add(printButton, (1,3), flag=wx.RIGHT, border=5) + sizer.Add(printButton, (1,3), flag=wx.RIGHT, border=5) self.sizer = sizer if self.filename != "None":