Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

add font to the label in window tkinter

import tkinter

window = tkinter.Tk()       # creating the window object
window.title('my first GUI program')
window.minsize(width=600, height=500)

# label 
# adding text to the middle of the window
my_label = tkinter.Label(text='I am a Label', font=('Cursive', 24, 'bold'))
my_label.pack()

window.mainloop()           # keeping the window until we close it
Comment

PREVIOUS NEXT
Code Example
Python :: python format decimal 
Python :: raise an APi error on django rest view 
Python :: python dedent 
Python :: python opens windows store 
Python :: append attribute ofpython 
Python :: convert int to hex binary in python 
Python :: say command python 
Python :: cv2 videocapture program for python 
Python :: python moving average time series 
Python :: selenium zoom out python 
Python :: define variable with if statement python 
Python :: scaling image interpolation python 
Python :: how to write a numpy array to a file in python 
Python :: add a column while iterating rows pandas 
Python :: python voice recognition 
Python :: how to change canvas background color in python tkinter 
Python :: binary search tree iterator python 
Python :: Basic method of Converting List to Dataframe 
Python :: package for downloading from youtybe for python 
Python :: pd add column with zeros 
Python :: delete unnamed coloumns in pandas 
Python :: You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. 
Python :: how to create a python venv 
Python :: qmessagebox icon pyqt5 
Python :: pandas strips spaces in dataframe 
Python :: AdaBoost in Python 
Python :: discord py get user by id 
Python :: python dictionary to csv 
Python :: count values pandas 
Python :: hello world py 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =