Time and date on Gmoccapy

More
11 years 3 months ago #60541 by LAIR82
Time and date on Gmoccapy was created 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 years 3 months ago - 11 years 3 months ago #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 years 3 months ago by cmorley. Reason: add linenumber

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

More
11 years 3 months ago - 11 years 3 months ago #60567 by newbynobi
Replied by newbynobi on topic Time and date on Gmoccapy
Or you do the changes directly on the file
Code:
/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 years 3 months ago by newbynobi.

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

More
11 years 3 months ago #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
11 years 1 month ago #62134 by LAIR82
Replied by LAIR82 on topic Time and date on Gmoccapy

newbynobi wrote: Or you do the changes directly on the file

Code:
/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
11 years 1 month ago #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.

Moderators: newbynobi, HansU
Time to create page: 0.309 seconds
Powered by Kunena Forum