Exemplo n.º 1
0
	def OnPrint(self, e):
		if len(self.filelist) < 1:
			wx.MessageBox('You need to load a file and slice it before you can print it.', 'Print error', wx.OK | wx.ICON_INFORMATION)
			return
		if not os.path.exists(sliceRun.getExportFilename(self.filelist[0])):
			wx.MessageBox('You need to slice the file to GCode before you can print it.', 'Print error', wx.OK | wx.ICON_INFORMATION)
			return
		printWindow.printFile(sliceRun.getExportFilename(self.filelist[0]))
Exemplo n.º 2
0
 def OnPrint(self, e):
     if len(self.filelist) < 1:
         wx.MessageBox(
             'You need to load a file and prepare it before you can print.',
             'Print error', wx.OK | wx.ICON_INFORMATION)
         return
     if not os.path.exists(sliceRun.getExportFilename(self.filelist[0])):
         wx.MessageBox('You need to prepare the file before you can print.',
                       'Print error', wx.OK | wx.ICON_INFORMATION)
         return
     printWindow.printFile(sliceRun.getExportFilename(self.filelist[0]))
Exemplo n.º 3
0
 def OnPrint(self, e):
     if len(self.filelist) < 1:
         wx.MessageBox(
             "You need to load a file and prepare it before you can print.",
             "Print error",
             wx.OK | wx.ICON_INFORMATION,
         )
         return
     if not os.path.exists(sliceRun.getExportFilename(self.filelist[0])):
         wx.MessageBox(
             "You need to prepare a print before you can run the actual print.",
             "Print error",
             wx.OK | wx.ICON_INFORMATION,
         )
         return
     printWindow.printFile(sliceRun.getExportFilename(self.filelist[0]))
Exemplo n.º 4
0
	def OnPrint(self, e):
		printWindow.printFile(self.resultFilename)
Exemplo n.º 5
0
	def OnPrint(self, e):
		printWindow.printFile(self.resultFilename)