How To Write Text On A Python Pygame Window In a Very EASY way(SPYDER IDE)

Опубликовано: 02 Июль 2026
на канале: CODING LIFE
57
3

#Hello Guys once again and welcome to my channel EVERYTHING That I Can. Today in this video I have taught you how to write text on a python (spyder pygame IDE) window. This is a very simple way to write text on a pygame window. You can write anything , change the colour of text, change its size and it's location. If you are interested in writing programs in pygame module then this video would be very helpful to you. I have given RGB Colours Modules list in the description.I have also given my other video links in the description so i hope that they would be useful for you. Please comment,share and don't forge to like the video. I would be coming up with more interesting videos soon so subsribe to get my channel updates[STAY TUNED]. That it's for today, See you in the next Video Byee.....
This is the programme code

import pygame
pygame.init()

win = pygame.display.set_mode((600,600))

def font():
font1 = pygame.font.SysFont('algerian',30)
text = font1.render('YOUTUBE', 5, (0,255,0))
win.blit(text,(300,300))

run = True
while run:
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False

font()
pygame.display.update()
pygame.quit()


Making a Moving Mechanism (   / watchv=u2ax3rnz3gi  )

Creating Shapes
(   • Adding Shapes To Python Spyder IDE  )

For Loop
(   • The For Loop ( C++ Easy Tutorial )  )

Adding Colours To Text(Colouring Text)
(   • Adding Colours To Text  (C++ FULL TUTORIAL)  )

Advance And Simple C++ CALCULATOR
(   • Video  )