[PyQt] Decimal separator Problem

Linos info at linos.es
Mon Nov 19 08:03:33 GMT 2007


Ingmar Steen escribió:
> On Nov 18, 2007 8:44 PM, David Boddie <david at boddie.org.uk> wrote:
>> On Tue Nov 13 22:43:29 GMT 2007, Linos wrote:
>>
>>> Ok, the real problem here it is that i cant use the dot in the numpad to
>>> begin decimal numbers, i have checked and spanish locale use comma like
>>> decimal separator, i was confused by too many english software i use,
>> I'm glad we don't have to try and track down a locale-related bug. :-)
>>
>>> but i have checked and in almost all the software i can use the dot in
>>> numpad to begin decimal numbers (although i view a comma), anyone knows
>>> how to map the symbol or other way to do that?
>> Do you want a leading comma to appear as a decimal point instead? Is this
>> a standard convention when dealing with numbers in Spanish?
>>
>> David
> 
> Hi David,
> 
> I think he means that he wants to be able to use the dot on the
> numeric pad to insert a decimal separator (and if the locale specifies
> a comma as decimal separator, that will be inserted instead of a dot).
> 
> Ingmar
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Yes it is that i means, have get the change with xev and xmodmap, with xev i have seen the keycode the numpad
dot launch and i have mapped with xmodmap to a comma and now it works ok, this is that i have used in .xmodmaprc:

keycode 91 = comma


Best Regards,
Miguel Angel.


More information about the PyQt mailing list