- finished improving the show of text files in FlatCAM (CNC Code, Source files)

This commit is contained in:
Marius Stanciu
2019-11-13 02:26:03 +02:00
committed by Marius
parent 63e22cf3ee
commit eafa6350b7
3 changed files with 13 additions and 10 deletions

View File

@@ -6122,11 +6122,12 @@ class FlatCAMCNCjob(FlatCAMObj, CNCjob):
self.gcode_editor_tab.t_frame.hide()
# then append the text from GCode to the text editor
try:
for line in self.app.gcode_edited:
QtWidgets.QApplication.processEvents()
proc_line = str(line).strip('\n')
self.gcode_editor_tab.code_editor.append(proc_line)
self.gcode_editor_tab.code_editor.setPlainText(self.app.gcode_edited.getvalue())
# for line in self.app.gcode_edited:
# QtWidgets.QApplication.processEvents()
#
# proc_line = str(line).strip('\n')
# self.gcode_editor_tab.code_editor.append(proc_line)
except Exception as e:
log.debug('FlatCAMCNNJob.on_edit_code_click() -->%s' % str(e))
self.app.inform.emit('[ERROR] %s %s' % ('FlatCAMCNNJob.on_edit_code_click() -->', str(e)))