ParthJadhav / Tkinter-Designer

An easy and fast way to create a Python GUI 🐍
BSD 3-Clause "New" or "Revised" License
8.63k stars 794 forks source link

Report bug: Color or thickness of the text does not match #340

Open tarokeitaro opened 1 year ago

tarokeitaro commented 1 year ago
aellas commented 12 months ago

Hey @tarokeitaro!

To resolve the love heart emoji, I would find the emoji as an image (.png) and add to your project path instead I would just simply download an image and add to your /project path and add the image to your gui code (will need to install pillow)

As for the coloured text, I believe it's a common thing as I had the same issue. Only thing I'd recommend is adding in the text manually with the coloured text. With the example below, you can set the font, font size and if you want the text bold or not.

(Please note, I'm using customtkinter in this example, just change CTkLabel to Label)

self.gu_normal = CTkLabel(self.gui.right_frame, text="Test", font=("Lato-Regular", 24, 'bold'), text_color="#FFFFFF")
self.gui_coloured = CTkLabel(self.gui.right_frame, text="Testing", font=("Lato-Regular", 24, 'bold'), text_color="#4282FF")

Hope this helps :)