Python Curses Tutorial #2 - Attributes and Colors

preview_player
Показать описание
Welcome back to another video in this series! At the end of my last video I gave you a teaser of one attribute, and in this video I'm going to go through all of the attributes you can use and how you use them! This includes styling, adding colors and all of those kinds of things!

📄 Resources 📄

⭐️ Timestamps ⭐️
00:00 | Introduction
00:48 | Text Styling With Attributes
02:52 | Adding Colors
08:00 | Updating The Screen

◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
💰 Courses & Merch 💰

🔗 Social Medias 🔗

🎬 My YouTube Gear 🎬

💸 Donations 💸
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️

⭐️ Tags ⭐️
-Tech With Tim
-Python Curses
-Curses Attributes
-Curses Tutorial
-Make Terminal Apps

⭐️ Hashtags ⭐️
#TechWithTim #CursesTutorial
Рекомендации по теме
Комментарии
Автор

Thank you for showing this library. I'm totally going to recreate the 80s style, menu driven programs I'd written in Commodore Basic.

CharlesStarbuck
Автор

I knew about the killing curse and the crusiatus curse but the Python curse? Lord voldemort will soon have a new favorite

joikerpen
Автор

Just a warning to everyone: getch() returns an INT value of the ASCII CODE representation of a char. So if you want to use getch to get user input and iterate using an int, you have to subtract 48 from it since 1 = 49 in ASCII.

Using chr() as Tim does here will give you tons of crashes and bugs with alternate keystrokes as chr() returns a string whose Unicode point is an integer.

drygordspellweaver
Автор

NONE of the attributes are working for me. Windows 11 PowerShell :( EDIT: Bold works. Standout Works. But blink doesn't (blink does the exact same thing as reverse!). Underline doesn't. Italics doesn't, etc.

JS-ysuk
Автор

Hi Tim nice tutorial! But on Python3.10 my system doesn't displays any color at WIN10 or WIN11 - with Python 3.9 the color is there!

jimlyjimlesson
Автор

Told my mother I am learning curses.
She said "what? Why?"
I said I want to master python.
She said she will pray for me.

reveninja
Автор

Wait... Why does | do both and not &?
Don't they both have to be 1(true) to see both attributes applied on the text?

Is this different than the logic table, because it's so counterintuitive?!

One being true shouldn't have made both true, it should have been the case that except for both being false, the three cases would work. colored, and not reversed, not colored and reversed, colored and reversed.
Can someone help me understand this?

korkunctheterrible
Автор

You should make a version of flappy bird, or a platform game that runs in the console.

charlesreed
Автор

I'm in vscode and there's no intellisense, which is bad. Does anyone have any ideas on how to fix it? Btw, great video, Tim.

bitten
Автор

I curse a lot so this is the perfect module dor me :3

sayori
Автор

HOW CAN I change the color of a Matrix????

alancoronalopez
Автор

I can't install windows-curses but i can install pygame in your how to install pygame video i follow every step and i can only install pygame but can't install winows-curse whenever i try to install windows-curses it shows
ERROR: Could not find a version that satisfies the requirement windows-curses (from versions: none)
ERROR: No matching distribution found for windows-curses

Please tell me or make a video on how to install windows-curses on windows10
My python version is 3.10

k_sgaming
Автор

How to display python code in cmd sir? Please

andiputra
Автор

Title: Python Curses.
My brain: Python curses?

jhonsuper
Автор

Can you explain the first minute of the video?

CatPerson
Автор

Curse - color
Attribute - color blindness

DeepakSingh-lnee
Автор

You cant install curses in python or is it just me

chicken
Автор

Is there any website to get more of these ????hello?👍

lordnature
Автор

anyone else hear tim say "cuther"?

jonathandias
Автор

Only legends know that the title is edited.

avishukla