How change "load file" with gmoccapy

More
10 Sep 2020 12:13 #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?


Thanks.
Bruno
Attachments:

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

More
10 Sep 2020 20:34 #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 or Create an account to join the conversation.

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

More
15 Sep 2020 14:36 #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 or Create an account to join the conversation.

More
19 Sep 2020 19:46 #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 or Create an account to join the conversation.

More
26 Oct 2020 16:07 #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 or Create an account to join the conversation.

Moderators: newbynobiHansU
Time to create page: 0.186 seconds
Powered by Kunena Forum