Skip to content

Commit 09c2ffc

Browse files
committed
qtvcp -geditor: fix the lexer button calls
they now don't crash the screen, but dont look preety in python mode either.
1 parent 56c4a75 commit 09c2ffc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/python/qtvcp/widgets/geditor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def previous(self):
272272
def gcodeLexerCall(self):
273273
self.gcodeLexer()
274274
def gcodeLexer(self):
275-
self.editor.set_gcode_lexer()
275+
self.editor.set_lexer("g-code")
276276

277277
def nextCall(self):
278278
self.next()
@@ -303,7 +303,7 @@ def openReturn(self,f):
303303
def pythonLexerCall(self):
304304
self.pythonLexer()
305305
def pythonLexer(self):
306-
self.editor.set_python_lexer()
306+
self.editor.set_lexer("python")
307307

308308
def redoCall(self):
309309
self.redo()

0 commit comments

Comments
 (0)