Aug-11-2017, 04:12 AM
I apologize for asking another question, but how can I disable text anti-aliasing in tkinter? I have tried padx= and pady= -1 and -2, but neither works. Will I just have to try to install tkinter 8.4?
Larz60+ Wrote:Hello,
Quote:I apologise that my first post has to be about asking for help but I have no other choice.
Questions are what this forum is about.
Check out http://stackoverflow.com/questions/30335...in-tkinter
also http://effbot.org/zone/tkinter-aggdraw.htm
Larz60+
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.mainloopThe letters are surrounded by white, reducing readability at small size and in front of the wrong colour.
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', font="fixedsys") label.pack() root.mainloop()