News [Linux.org] Python Series Part 22: Tkinter Entry Widgets - Part 2

News

LinuxBot

Member
Joined
Apr 25, 2017
Messages
5,738
Reaction score
74
Credits
-1,257
We can now continue with the Entry Object for Python. Hopefully, you have gone over Part 1 before continuing on here. Font Since we can change the colors, why not the font as well? You need to make sure that any font you use exists on the system where the Python code is being executed. On my system, I am running Ubuntu, so I have a font named ‘ubuntu’. In the example, the label will have the text ‘Example Entry’ with the font being ‘ubuntu’: Code: e1 = Entry(font='ubuntu')... https://www.linux.org/threads/python-series-part-22-tkinter-entry-widgets-part-2.58547/

Source: https://www.linux.org/threads/python-series-part-22-tkinter-entry-widgets-part-2.58547/

Aggregated via Linux News
 


Follow Linux.org

Members online


Top