Python Forum
[Tkinter] Disable anti aliasing for text
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Disable anti aliasing for text
#3
from tkinter    import *
from tkinter import ttk
root = Tk()
root.overrideredirect(True)
root.geometry('+1000+500')
root.lift()
root.wm_attributes('-topmost', True)
root.wm_attributes('-disabled', True)
root.wm_attributes('-transparentcolor', 'white')
label = Label(root, text='test', bg='white')
label.pack()
root.mainloop
The letters are surrounded by white, reducing readability at small size and in front of the wrong colour.
Reply


Messages In This Thread
Disable anti aliasing for text - by AnonymousNobody - Aug-11-2017, 04:12 AM
RE: Disable anti aliasing for text - by nilamo - Aug-11-2017, 05:44 PM
RE: Disable anti aliasing for text - by AnonymousNobody - Aug-11-2017, 07:05 PM
RE: Disable anti aliasing for text - by nilamo - Aug-11-2017, 07:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] binding versus disable DPaul 6 6,861 May-05-2021, 05:17 PM
Last Post: DPaul
  How to disable custom button Sancho_Pansa 7 3,558 Dec-04-2020, 02:21 PM
Last Post: buran
  How to disable focus on Frame in Tkinter? szafranji 1 3,051 May-13-2020, 10:45 PM
Last Post: DT2000
  Disable entry field and still see value scratchmyhead 5 5,179 May-11-2020, 08:09 PM
Last Post: menator01
  [Tkinter] how can disable menu [About] when Toplevel is active balenaucigasa 0 2,685 Oct-25-2019, 09:49 PM
Last Post: balenaucigasa
  Disable Enter Key PyQt5 Wizard maffaz 1 6,745 Jul-02-2018, 09:45 AM
Last Post: maffaz

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020