Gcode Editor Find Previous

More
5 years 10 months ago #192093 by phillc54
The find previous button keeps giving the following error:
Code:
Traceback (most recent call last): File "/home/phill/git/linuxcnc-dev/lib/python/qtvcp/widgets/gcode_editor.py", line 768, in nextCall next(self) TypeError: GcodeEditor object is not an iterator

Please Log in to join the conversation.

More
5 years 10 months ago #192095 by cmorley
Replied by cmorley on topic File Manager Find Previous
do you mean gcode editor search function?

Please Log in to join the conversation.

More
5 years 10 months ago #192096 by phillc54
Replied by phillc54 on topic File Manager Find Previous
Oops. :blush:

Yep, that's the one.

Please Log in to join the conversation.

More
5 years 10 months ago #192098 by cmorley
Replied by cmorley on topic File Manager Find Previous
i'll look into it (haven't tested that in a long while)

Please Log in to join the conversation.

More
5 years 10 months ago #193274 by phillc54
Replied by phillc54 on topic Gcode Editor Find Previous
I changed the title to a more correct one but have another question.

Some time back it was possible to hide the gcode lexer button and the python lexer button but it has changed and I cannot work out how to do it any more. Is it possible to allow this to happen again?

Please Log in to join the conversation.

More
5 years 10 months ago #193280 by cmorley
Replied by cmorley on topic Gcode Editor Find Previous
Sorry I forgot about the broken search function - fixed now.

Added some code to help.
If there is a convenience function needed to set a common set of controls visible (ie setting up modes of operations) then let me know
But here are the raw functions samples:
Code:
w=self.w.gcodewidget w.toolBar.hide() # hides everything w.pythonLexerAction.setVisible(False) w.gCodeLexerAction.setVisible(False) w.openAction.setVisible(False) w.newAction.setVisible(False) w.saveAction.setVisible(False) w.exitAction.setVisible(False) w.label.setText('<b>Edit mode title label</b>')

Please Log in to join the conversation.

More
5 years 10 months ago #193284 by phillc54
Replied by phillc54 on topic Gcode Editor Find Previous
Thanks Chris, I can close my PR then, although there are some status tip changes you could get from it.

Please Log in to join the conversation.

More
5 years 10 months ago #193287 by cmorley
Replied by cmorley on topic Gcode Editor Find Previous
Sorry I didn't see that either - I'll incorporate your work too.

Chris

Please Log in to join the conversation.

Time to create page: 0.102 seconds
Powered by Kunena Forum