-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Some improvements to the Gladevcp/calculator widget #3473
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
Some improvements to the Gladevcp/calculator widget #3473
Conversation
Sigma1912
commented
Jun 15, 2025
- inputs and deletions in the entry box are now respecting cursor position instead of being always at the end
- a bit of clean up
|
Is there any reason for not using the unicode '\u03C0' for the small greek letter "pi" instead of the string "Pi"? π That would make almost all the special handling of the two character string 'Pi' in the code obsolete. Maybe we could also replace the 'DEL' with the more correct '\u232B': ⌫ |
I guess it's because your keyboard doesn't have a π-key, but you can enter 'Pi' with your keyboard....
Yes, we can change that. |
|
Are there any objections to this? I don't use Gmoccapy so feel unqualified to do the merge. |
|
I don't agree to the graphical changes except that one with the backspace-symbol.
I was talking about duplicated icons - text and icons are fine. Maybe you misunderstood me... And I don't really get the point with the cursor. Can you give an example of the behavior before and after? |
|
|
I don't have access to a linuxcnc installation to record the behavior but the issue is easily reproduced. Note that the issue does not appear if we use the keyboard to type, so make sure you use the mouse or touchscreen to press the buttons on the calculator widget: Example 1
Example 2
|
|
Ah good catch! I never noticed (used) that. |
|
Your commit Allow using calculation result in new operations is a bit contrary to my change 4 years ago: 450dabe I don't remember why I did it that way. @ others: opinions? |
Generally I find the mix of icons and text labels somewhat unfortunate as it breaks the styling of the buttons. I can kind of understand the use of icons for buttons like 'OK' and 'Cancel' but I don't really see a point for any of the others. |
|
Yeah that's fine. I just increased the font size for that symbol a bit (because it is a small letter)
https://github.com/hansu/linuxcnc/commits/calculatorwidget-respect-cursor-position
Hmm I get also the OK and Cancel button. But yes they should be added to the icon theme to be able to adapt to the material theme. |
|
I have done the icon changes and added a prefix in the commit messages in this branch https://github.com/linuxcnc/linuxcnc/commits/calculatorwidget-respect-cursor-position |
720054a to
78ae6b5
Compare
|
Weird that I am still the Committer of the commits that I rebased and you force pushed. However... |









