FAQ
Hi,

There's a hint in the EditorWindow module for changing the default font
and size for Win32 users.
What can a Linux IDLE user do to change the extreme small and ugly font
used in
IDLE (0.5) ?

TIA

Gilles

Search Discussions

  • Bryan Mongeau at Jan 22, 2001 at 5:46 pm

    Hi,

    There's a hint in the EditorWindow module for changing the default font
    and size for Win32 users.
    What can a Linux IDLE user do to change the extreme small and ugly font
    used in
    IDLE (0.5) ?

    TIA

    Gilles
    This is what I did ( shame-faced hack... ):

    grep through the file config-unix.txt .

    Change lines "font-name=" and "font-size=" to whatever you want. I use
    terminal, size 12.

    enjoy.

    --
    <==================================>
    Bryan Mongeau
    Lead Developer, Director
    eEvolved Real-Time Technologies Inc.
    www.eevolved.com
    <==================================>

    "Whoever undertakes to set himself up as a judge of Truth and Knowledge is
    shipwrecked by the laughter of the gods."-- Einstein
  • Gilles Lenfant at Jan 23, 2001 at 11:35 am
    Bryan,

    There is no "config-unix.txt" file in any Python related directory.
    Perhaps you are using another IDLE version than mine (0.5).

    Bryan Mongeau wrote:
    Hi,

    There's a hint in the EditorWindow module for changing the default font
    and size for Win32 users.
    What can a Linux IDLE user do to change the extreme small and ugly font
    used in
    IDLE (0.5) ?

    TIA

    Gilles
    This is what I did ( shame-faced hack... ):

    grep through the file config-unix.txt .

    Change lines "font-name=" and "font-size=" to whatever you want. I use
    terminal, size 12.

    enjoy.
  • Simon Brunning at Jan 23, 2001 at 12:12 pm

    From: Gilles Lenfant [SMTP:glt at e-pack.net]
    There is no "config-unix.txt" file in any Python related directory.
    Perhaps you are using another IDLE version than mine (0.5).
    The file that Bryan mentioned was introduced in IDLE version 0.6. Why not
    upgrade to that version?

    Cheers,
    Simon Brunning
    TriSystems Ltd.
    sbrunning at trisystems.co.uk




    -----------------------------------------------------------------------
    The information in this email is confidential and may be legally privileged.
    It is intended solely for the addressee. Access to this email by anyone else
    is unauthorised. If you are not the intended recipient, any disclosure,
    copying, distribution, or any action taken or omitted to be taken in
    reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
    accept liability for statements made which are clearly the senders own.
  • Gilles Lenfant at Jan 23, 2001 at 2:10 pm
    Thanks...

    But for deployment reasons, I need a solution that works with Python 1.5.2
    that does not run IDLE 0.6 (some Unicode constants and others).

    After a quick view, hacking IDLE 0.6 to make it work with Python 1.5.2 is
    more difficult than it seemed at first.

    "Simon Brunning" <SBrunning at trisystems.co.uk> a ?crit dans le message news:
    mailman.980252066.30237.python-list at python.org...
    From: Gilles Lenfant [SMTP:glt at e-pack.net]
    There is no "config-unix.txt" file in any Python related directory.
    Perhaps you are using another IDLE version than mine (0.5).
    The file that Bryan mentioned was introduced in IDLE version 0.6. Why not
    upgrade to that version?

    Cheers,
    Simon Brunning
    TriSystems Ltd.
    sbrunning at trisystems.co.uk




    -----------------------------------------------------------------------
    The information in this email is confidential and may be legally
    privileged.
    It is intended solely for the addressee. Access to this email by anyone else
    is unauthorised. If you are not the intended recipient, any disclosure,
    copying, distribution, or any action taken or omitted to be taken in
    reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
    accept liability for statements made which are clearly the senders own.
  • Martin Franklin at Jan 23, 2001 at 2:32 pm
    Take a look in EditorWindow.py it has this on line 142....

    if sys.platform[:3] == 'win':
    text['font'] = ("lucida console", 8)
    # text['font'] = ("courier new", 10)


    change it to just ...

    text['font'] = ("Courier ", 14)

    or whatever font you like.....

    Martin


    Gilles Lenfant wrote:
    Thanks...

    But for deployment reasons, I need a solution that works with Python 1.5.2
    that does not run IDLE 0.6 (some Unicode constants and others).

    After a quick view, hacking IDLE 0.6 to make it work with Python 1.5.2 is
    more difficult than it seemed at first.

    "Simon Brunning" <SBrunning at trisystems.co.uk> a ?crit dans le message news:
    mailman.980252066.30237.python-list at python.org...
    From: Gilles Lenfant [SMTP:glt at e-pack.net]
    There is no "config-unix.txt" file in any Python related directory.
    Perhaps you are using another IDLE version than mine (0.5).
    The file that Bryan mentioned was introduced in IDLE version 0.6. Why not
    upgrade to that version?

    Cheers,
    Simon Brunning
    TriSystems Ltd.
    sbrunning at trisystems.co.uk




    -----------------------------------------------------------------------
    The information in this email is confidential and may be legally
    privileged.
    It is intended solely for the addressee. Access to this email by anyone else
    is unauthorised. If you are not the intended recipient, any disclosure,
    copying, distribution, or any action taken or omitted to be taken in
    reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
    accept liability for statements made which are clearly the senders own.
    --
    http://mail.python.org/mailman/listinfo/python-list
  • Gilles Lenfant at Jan 24, 2001 at 1:17 pm
    Martin,

    This works only with Windows IDLE.
    I removed :
    if sys.platform[:3] == 'win':
    and tried different valid font names in:
    text['font'] = ...

    This seems to be completely ignored in Linux because IDLE always shows the
    same ugly little font.

    "Martin Franklin" <martin.franklin at westerngeco.com> a ?crit dans le message
    news: mailman.980260346.3483.python-list at python.org...
    Take a look in EditorWindow.py it has this on line 142....

    text['font'] = ("lucida console", 8)
    # text['font'] = ("courier new", 10)


    change it to just ...

    text['font'] = ("Courier ", 14)

    or whatever font you like.....

    Martin
  • Martin Franklin at Jan 24, 2001 at 1:57 pm
    Gilles,

    Could you check if you have permission to overwrite the EditorWindow.pyc
    file
    I suspect that your changes are picked up not being used. I just changed
    it
    to Courier 24 on my RedHat 6.2 box and it looks massive! The other
    place you
    could try is in the PyShell.py file under line 711...
    root = Tk()
    font='Courier 24'
    root.option_add('*font', font)


    This will change it for all widgets.... including the menu and the edit
    window
    and the python shell etc

    Hope this helps.
    Martin



    Gilles Lenfant wrote:
    Martin,

    This works only with Windows IDLE.
    I removed :
    if sys.platform[:3] == 'win':
    and tried different valid font names in:
    text['font'] = ...

    This seems to be completely ignored in Linux because IDLE always shows the
    same ugly little font.

    "Martin Franklin" <martin.franklin at westerngeco.com> a ?crit dans le message
    news: mailman.980260346.3483.python-list at python.org...
    Take a look in EditorWindow.py it has this on line 142....

    text['font'] = ("lucida console", 8)
    # text['font'] = ("courier new", 10)


    change it to just ...

    text['font'] = ("Courier ", 14)

    or whatever font you like.....

    Martin
    --
    http://mail.python.org/mailman/listinfo/python-list
  • Bowman at Jan 24, 2001 at 2:30 pm
    Gilles Lenfant <glenfant at equod.com.nospam> wrote in message
    news:94mkal$2me$1 at reader1.imaginet.fr...
    This works only with Windows IDLE.
    I removed :
    if sys.platform[:3] == 'win':
    and tried different valid font names in:
    text['font'] = ...
    I'm not on Linux at the moment, so can't test it, but have you tried passing
    the name in the form you get when you run xlsfonts, with all the fields?
    I've seen the problem with app-defaults files. If there isn't a good match
    to a valid font spec, it defaults back to something else, usually an ugly
    monospaced 12 point it picks up from the xterm.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedJan 22, '01 at 10:57a
activeJan 24, '01 at 2:30p
posts9
users6
websitepython.org

People

Translate

site design / logo © 2023 Grokbase