Time and date on Gmoccapy

More
10 Jul 2015 00:52 #60541 by LAIR82
Hello Guys,

How do you change the time to a 12hr format, and change the date to MM/DD/YYYY?

I looked at it thru the GLADE editor, but it just say's Time and Date for that section.

Rick

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

More
11 Jul 2015 05:59 - 11 Jul 2015 06:00 #60552 by cmorley
Replied by cmorley on topic Time and date on Gmoccapy
you would have to change gmoccapy's core code by the look of it...

if using a RIP linuxcnc:
in src/emc/usr_intf/gmoccapy/gmoccapy.py

look for a line like this somewhere around line 1371:
self.widgets.lbl_time.set_label( strftime( "%H:%M:%S" ) + "\n" + strftime( "%d.%m.%Y" ) )

change the big H to a big I and then change the order of "%d.%m.%Y"

then remake linuxcnc


Chris M
Last edit: 11 Jul 2015 06:00 by cmorley. Reason: add linenumber

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

More
11 Jul 2015 22:01 - 11 Jul 2015 22:06 #60567 by newbynobi
Replied by newbynobi on topic Time and date on Gmoccapy
Or you do the changes directly on the file
/usŕ/bin/gmoccapy

do not change owner or mode. That is the way you will not need the source or to remake linuxcnc.

For gmoccapy 1.5.3.1 the corresponding line to make the changes is 1364

Norbert
Last edit: 11 Jul 2015 22:06 by newbynobi.

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

More
13 Jul 2015 19:50 #60611 by LAIR82
Replied by LAIR82 on topic Time and date on Gmoccapy
Thanks Guys,

That looks better now, that I got it changed.


Rick

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

More
05 Sep 2015 00:53 #62134 by LAIR82
Replied by LAIR82 on topic Time and date on Gmoccapy

Or you do the changes directly on the file
/usŕ/bin/gmoccapy

do not change owner or mode. That is the way you will not need the source or to remake linuxcnc.

For gmoccapy 1.5.3.1 the corresponding line to make the changes is 1364

Norbert


Hey guys,

I take it that these lines and data no longer apply to change this?

I just tried to do this on a current build, and cannot find anything relating to "self.widgets.lbl_time.set_label( strftime( "%H:%M:%S" ) + "\n" + strftime( "%d.%m.%Y" ) )" in the file.

Rick

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

More
08 Sep 2015 04:10 #62223 by newbynobi
Replied by newbynobi on topic Time and date on Gmoccapy
What gmoccapy version?

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

More
08 Sep 2015 19:37 #62256 by LAIR82
Replied by LAIR82 on topic Time and date on Gmoccapy
It looks like 1.5.5, I can't open my config, but a current ( as of last friday ) sim config shows 1.5.5, I looked at ,

Or you do the changes directly on the file
/usŕ/bin/gmoccapy

do not change owner or mode. That is the way you will not need the source or to remake linuxcnc.

For gmoccapy 1.5.3.1 the corresponding line to make the changes is 1364

Norbert


And didn't find the " self.widgets.lbl_time.set_label( strftime( "%H:%M:%S" ) + "\n" + strftime( "%d.%m.%Y" ) )" line any where, I searched the whole file, and couldn't find it all.

Thanks

Rick

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

More
03 Oct 2015 23:56 #63402 by newbynobi
Replied by newbynobi on topic Time and date on Gmoccapy
Hallo Rick, sorry for the late answer.

It must be there ;-)

in gmoccapy 1.5.5.2 it is in line 1370,

just searche for

def _periodic

and some lines down you will find the line ;-)

Norbert

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

More
05 Oct 2015 20:48 #63445 by LAIR82
Replied by LAIR82 on topic Time and date on Gmoccapy
Yeah, I'm not sure what I had going on, but after I did a fresh pull, and re-compiled, it was there and I changed it.

I had a few things fouled up on the machine, but we're back to making chips now :)

Thanks

Rick

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

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