Search code examples
windowsgtkpygtkglade

How to change the defaults alignment to left in pygtk?


Every program that I'm making using pygtk is right-alignment by default (maybe because my default language is right to left language?) How can I change it? pygtk right alignment example


Solution

  • The orientation of the widgets in a container depends on the locale. You can change the locale settings on Windows by setting the LANG environment variable.

    set LANG=en_US
    something.py
    

    On Linux you can do the same with the following commands

    export LANGUAGE=en_US
    something.py
    

    or simply

    LANGUAGE=en_US something.py