I am trying to get the pygtk application to behave like openoffice calc does, relative to the decimal point. This means that when I get the KP_Decimal key (a dot on the keyboard), I want my records to show which decimal point is in the current locale (dot or comma, respectively).
I searched for a long time, and I could not find how to do this. I can capture key_press_event in Gtk.Entry and check KP_Decimal, and I can get the current locale setting for the decimal point; but I donβt know how to convert point to comma if necessary.
I want this change to be global for the application, and not specific to certain entries, so it would be better if it could be done using something more general, such as input methods. I also read about them, and I could not find a way to use them the way I want.
source share