From: Daid Date: Sat, 24 Mar 2012 11:39:31 +0000 (+0100) Subject: Enable print button, does not do anything useful yet. But stashing the change so... X-Git-Tag: RC1~20 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3ded5575843de356608610599c1d801f67bdb274;p=cura.git Enable print button, does not do anything useful yet. But stashing the change so I can rename to Cura --- diff --git a/Cura/newui/mainWindow.py b/Cura/newui/mainWindow.py index b3fc0e16..e1b1f8c1 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":