How change "load file" with gmoccapy

More
6 years 1 month ago #181617 by bruno2626
Hi,
I use gmoccapy with my Hurco BMC40.
When I want to open a gcode file, the filenames are hard to read.
How can I change this display?

Attachment not found



Thanks.
Bruno

Please Log in to join the conversation.

More
6 years 1 month ago #181679 by newbynobi
You will need to change the coder from the widget iconfileselector.
Or you change you file names. The long beginnings are the same for all files you showed.

Why not order them with directories and make the names shorter?

There is no setting for that purpose.

Norbert

Please Log in to join the conversation.

More
6 years 1 month ago #181899 by bruno2626
Thanks newbynobi. I found "iconfileselector" in gmoccapy.py but I don't know how to go further. You have to search in another file?
That's true, my filenames may be unnecessarily long. This is often the case with Cambam too.

Bruno

Please Log in to join the conversation.

More
6 years 1 month ago #182237 by newbynobi
Hallo Bruno,

the changes must not be done in gmoccapy.py.
You will need to modify iconview.py. The file should be placed in the lib folder in some subfolder.

Norbert

Please Log in to join the conversation.

More
6 years 1 month ago #182777 by bruno2626
Thanks newbynobi,
I couldn't find iconview.py anywhere!
I think I've searched a little bit everywhere, but found nothing.

Bruno

Please Log in to join the conversation.

More
6 years 5 days ago #187324 by chrisfairbrother
Hi, I struggle with the file name format as well. Fixer has produced a modified version of iconview.py. The location of the file is explained in the head of the file. I use this modified version in my setup. I can’t tell you the version of linuxcnc I use as I am not at home. Here is the link to fixer’s file
forum.linuxcnc.org/gmoccapy/31746-iconview-filebrowser#82004
Chris

Please Log in to join the conversation.

Time to create page: 0.096 seconds
Powered by Kunena Forum