Gcode Editor Find Previous

  • phillc54
  • phillc54's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
16 Dec 2020 02:27 #192093 by phillc54
File Manager Find Previous was created by phillc54
The find previous button keeps giving the following error:
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 or Create an account to join the conversation.

More
16 Dec 2020 03:32 #192095 by cmorley
Replied by cmorley on topic File Manager Find Previous
do you mean gcode editor search function?

Please Log in or Create an account to join the conversation.

  • phillc54
  • phillc54's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
16 Dec 2020 03:34 #192096 by phillc54
Replied by phillc54 on topic File Manager Find Previous
Oops. :blush:

Yep, that's the one.

Please Log in or Create an account to join the conversation.

More
16 Dec 2020 03:38 #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 or Create an account to join the conversation.

  • phillc54
  • phillc54's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
27 Dec 2020 06:34 #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 or Create an account to join the conversation.

More
27 Dec 2020 10:39 #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:
        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>')
The following user(s) said Thank You: phillc54

Please Log in or Create an account to join the conversation.

  • phillc54
  • phillc54's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
27 Dec 2020 11:07 #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 or Create an account to join the conversation.

More
27 Dec 2020 11:12 #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 or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.111 seconds
Powered by Kunena Forum