-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Gmoccapy 3.5.1 #3494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gmoccapy 3.5.1 #3494
Conversation
|
I'll take a look |
Sure.
I tried but it was rejected by the community. I didn't remember the issue or thread, but I kept the images in the latest release: f3a8136
Oh, I didn't test that. The everlasting problems with the localization in the tool table... |
I cannot test this right now but I think replacing this line: https://github.com/LinuxCNC/linuxcnc/blob/master/src/emc/usr_intf/gmoccapy/gmoccapy.py#L1992 with this should do it. |
That would bee to easy 😄. But yeah, almost that 😉 (4bcfd3e). Thanks. |
I would rather disable localization in the calculator. |
Yes, but it should be possibly to use the comma key on the keyboard as decimal separator. |
It was Norberts conditions. Maybe this will help:
|
|
Hmm but weird that it crashes though. |
|
It crashed here:
In save function:
Not in function :
The col_editted function was probably skipped by the calculator. |
We could have the calculator widget accept ',' as well as '.' by converting all commas to dots: Changing this https://github.com/Sigma1912/linuxcnc/blob/master/lib/python/gladevcp/calculatorwidget.py#L174 to this: |
|
An other option would be to do it in the signal handler function similar to what is done in 'col_editted': Changing this https://github.com/Sigma1912/linuxcnc/blob/master/src/emc/usr_intf/gmoccapy/gmoccapy.py#L1992 to this |
|
I think I would prefer the second option thus not allowing mixing comma AND dots in the calculator but either commas OR dots depdending on the locale set.
Yes, the calculator uses the 'editing-started' signal which is emitted as soon as a cell is in editing mode while the 'edited' signal is emitted after the cell has been edited using the keyboard. |
|
[Sigma1912]
I would say that history is repeating itself here. I also preferred to use only comma, or only dot.
If we could agree on this, we could make it a rule and list it here: |
|
@zz912 |
Yes
You are lucky man. |
|
Could you test this please? to this: This should have the advantage of only accepting the decimal symbol set in the locale (ie dot OR comma but not both) and then hand back values with decimal dot. |
|
I'll look at it tonight. |
|
It did not help. I tested it with print command: b was with decimal point, but in table cell was comma. It is weird. If you want to test other localizations, here is the manual: |
Where do you live? Because your name sounds German... Or just a German living abroad? 🤔 |
|
I'm in Switzerland |
|
Ah, didn't know that they use dots. |
I think this was originally intended by Norbert, like the tool table also used localization. |
Yes, yes, yes. My opinion. But don't forget to accept decimal comma in inputs. The best is plain: |
|
Almost all have completely misunderstood this PR :'( So please continue for the several topics that arose from this in the dedicated topics: Offset page: #3513 |
9eebc04 to
7f72caa
Compare
|
I would suggest to merge this like it is now and do the localization stuff for the calculator and so on in the next gmoccapy version. What do you think? |
|
No problem for me. |
|
I do agree to push this one now and discuss the comma dot stuff later. |
|
Issue for "Calculator widget - localization - decimal separator" is made: |
hal_glib --> common/hal_glib, see 333579a
because this does not reflect the spindle speed programmed with the S word. It shows the current resp. commanded speed.
* feat: new icons for gmoccapy * calculator_open * chevron_down * edit_undo * edit_redo * split_view * comment * jog_continuous * feat: add material icons "add", "delete"
…unused format template



Main changes:
Add button "refresh dir" in open file page
Main window / jog:
G-code editor:
MDI-entry: bigger enter button (touch-friendly)
And the changes from other PRs which are already in master:
@PeterMue Can you please add resp. recreate the new icons to your https://github.com/PeterMue/gmoccapy-icon-themes? For those I get weird colors, but I think you will add them as SVG and then generate the PNGs so this problem will disappear I guess. Only for the Comment-button I haven't created a symbolic one. Thanks!
Sorry @Sigma1912 @BsAtHome @zz912 that I create this in favor of reviewing your PRs, but these changes are mostly from march and I will get this done to avoid conflicts especially when there will be some activity in the LinuxCNC meeting in Oslo this weekend.