Python Curses Tutorial #1 - Make GOOD Looking Terminal Apps!

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ม.ค. 2025

ความคิดเห็น • 142

  • @CobraOfficer
    @CobraOfficer 3 ปีที่แล้ว +218

    Nice job again, Tim. I'm in my late 40s and started programming in Python after i was damn near broken after a nasty car accident. i spent six months in physical therapy and learning to program was a way to help me not focus on the pain. Your videos, as well as other put me well on my way. so thanks my man. You have no idea how much you helped.

    • @thevigilvoices
      @thevigilvoices 3 ปีที่แล้ว +11

      Wooooo! Goodluck sir 👍

    • @CobraOfficer
      @CobraOfficer 3 ปีที่แล้ว +4

      Thanks

    • @adamvalent2119
      @adamvalent2119 3 ปีที่แล้ว +4

      I wish you the best my friend, programming is a wonderful thing to learn

    • @Shagadin
      @Shagadin 3 ปีที่แล้ว +4

      Good luck Mr. Cobra!

    • @zd4w9
      @zd4w9 ปีที่แล้ว +1

      Hope you're doing well. You should be pretty good at coding by now!

  • @yung-megafone
    @yung-megafone 3 ปีที่แล้ว +19

    ayyy thank you for making this so easy to follow!
    i made the paint application earlier and I am about to make the speed typer application. You are helping me relearn and expand my python knowledges. You earned a sub man, keep it up!

  • @FrancescoTattoli
    @FrancescoTattoli 3 ปีที่แล้ว +6

    That's exactly the course i needed to complete my invoicing program. The right man at the right time Tim, thanks!

  • @fellow_enginerds
    @fellow_enginerds 2 ปีที่แล้ว +1

    I have been watching your videos for a few months now and have learned so much already! It encouraged me to pursue an online certificate in computer science which I just received after completing a degree in engineering. So much many more lessons to learn but I’d like to acknowledge you for being a big impact towards my growth.

  • @mechwarrior83
    @mechwarrior83 2 ปีที่แล้ว +2

    Whatever it is I want to learn about, you already have an expertly made video on it Tim! Thank you so much for putting this amazing content out there.

  • @Shagadin
    @Shagadin 3 ปีที่แล้ว +2

    Tim, your channel (together with two or three others) is always in my list when I recommend material to a person that wants to start programming. GOOD JOB!

    • @yep_2431
      @yep_2431 3 ปีที่แล้ว

      Just started python and programming. Mind sharing the other TH-camrs?

    • @Shagadin
      @Shagadin 3 ปีที่แล้ว

      @@yep_2431 Corey Schafer for the basics and more and buildwithpython to check the many things you can do with the language.

  • @francescoanastasio2021
    @francescoanastasio2021 3 ปีที่แล้ว +3

    Looking forward to the next part! Sometimes (most of times) I write applications for limited users, writing a GUI every time with PYQT is extremely distressful. Long live cmd!

  • @kianureeves2519
    @kianureeves2519 ปีที่แล้ว

    i was worried that curses was too old or obscure for me to find any kind of useful tutorials that actually explain the functions and I'd have to slave over documentation forever to figure it out, but then I remembered youtube existed and low and behold here I am. God bless u sir

  • @cuszco
    @cuszco 3 ปีที่แล้ว +142

    Another great tutorial. My only criticism is that you maybe spent a little too much time explaining how to navigate the filesystem. I think that people who are concerned with how their terminal applications look have passed the "What's a computer and how do I use it" stage ;)

    • @amir3515
      @amir3515 3 ปีที่แล้ว +8

      I think TH-cam videos are for those who haven't gotten the skill of learning quickly from documentation or from just reading a quick article. A big portion of those people need their hand held for everything still

    • @hussainaqeel7371
      @hussainaqeel7371 3 ปีที่แล้ว +1

      Agreed

    • @solomonsam8927
      @solomonsam8927 3 ปีที่แล้ว +4

      shut up dude, people still need that

    • @hussainaqeel7371
      @hussainaqeel7371 3 ปีที่แล้ว +5

      @@solomonsam8927 Navigating the FS is one of the most basic things...you should learn that while you're a beginner

    • @cuszco
      @cuszco 3 ปีที่แล้ว +1

      @@solomonsam8927 Relax dude. I'm not saying people don't need that. I'm just saying that those who do are generally not looking into improving their own terminal applications.

  • @myfunnyval1
    @myfunnyval1 3 ปีที่แล้ว +3

    Heey Tim,
    I'm so glad I hit on your tutorial. I'd been poking around looking for escape sequence to try to achieve some of the things curses does, and you just saved me from re-inventing the wheel. I use Python on both Linux and Windows, and looking forward to trying some of this out.

  • @meercat1880
    @meercat1880 3 ปีที่แล้ว +2

    ur tutorials deserve so much more recognition

  • @woulg
    @woulg ปีที่แล้ว

    Wo, the amount of effort that you put into this, the beauty, clarity and pacing of the video. Damn, you're a great teacher and thank you I really wanted to learn about this and I'm very thankful to find a great teacher that is covering the topic so well. Looking forward to watching the whole series and following along (or at least as far as I get before my ADHD takes me on some other quest haha)

  • @ahmedalzahrani7356
    @ahmedalzahrani7356 3 ปีที่แล้ว +1

    Hands down. Tim is really great! I love your videos and I enjoy your teaching style.

  • @NikoKun
    @NikoKun 2 ปีที่แล้ว +3

    After seeing that first typing-test demo, I had a weird urge to try making it, without curses or anything else! ..And I actually figured out a way to do that portably, without needing additional libraries beyond what Python comes with. ;D

    • @NikoKun
      @NikoKun 2 ปีที่แล้ว +2

      @Anirudh Agrahari Well, my name on git hub is Nikorasu, and I've got it posted in my MiscPython repo under TypingWPM. Bit of a rough draft there tho.
      At this time, it's just a Linux only version. Tho I'll add Windows support later, since it's super easy, just need to swap my getch function for the one in msvcrt.

  • @j.o.e.l-joelsonlineeducati6559
    @j.o.e.l-joelsonlineeducati6559 3 ปีที่แล้ว

    Thanks Tim. Really wanted a curses tutorial series !

  • @AnasHart
    @AnasHart 5 หลายเดือนก่อน +1

    7:16 An easier method is: click in the address bar of the folder you want, type "cmd" and press enter. It will open a terminal in the working directory of that folder.

  • @poisoned_durian8
    @poisoned_durian8 10 หลายเดือนก่อน +1

    I tried the command but it doesn't take me to an empty screen, it just waits for another command help

  • @LGseeker
    @LGseeker 3 ปีที่แล้ว

    Great video Tim, love how thorough you are

  • @ioim_0
    @ioim_0 3 ปีที่แล้ว

    I’ve been waiting for a vid like this
    Thx a lot

  • @perceptivity_
    @perceptivity_ 3 ปีที่แล้ว +11

    12:50 "I'm increasing my wife and my ex or my row and my com". gotta love auto CC

  • @brightsideofmaths
    @brightsideofmaths 3 ปีที่แล้ว

    Great video as always. Thank you :)

  • @Staninna
    @Staninna 3 ปีที่แล้ว

    Just when I wanted to make a chat application with it u get me with this and now i can make it ✨pretty✨

  • @oglothenerd
    @oglothenerd 2 ปีที่แล้ว +1

    You make such good tutorials! Is it possible that you could make a Curses tutorial for Rust? You already did an introduction to Rust tutorial!

  • @ramgopalvarma5949
    @ramgopalvarma5949 3 ปีที่แล้ว

    This is exactly what I was looking for, thank you Tim.

  • @dannfr
    @dannfr 3 ปีที่แล้ว +1

    You make awesome tutorials man

  • @johnnytoobad7785
    @johnnytoobad7785 3 ปีที่แล้ว +1

    This kind reminds me of my prior life when I used to do character based UI programming on the DEC-VT100. Except they used escape sequences. The more things change..the more they remain the same. I just figured out how to add "color" to python log messages. That uses also.

    • @tsg1zzn
      @tsg1zzn 3 ปีที่แล้ว

      I am sure curses uses escape sequences under the hood.

  • @GhostAcademy
    @GhostAcademy 3 ปีที่แล้ว +1

    Your tutorials are awesome🤗

  • @christopherhorn5274
    @christopherhorn5274 2 ปีที่แล้ว

    Thanks, you are such a great teacher!

  • @thelavagod
    @thelavagod 3 ปีที่แล้ว +1

    Tim, i have a problem, when i import the curses module,it gives me ImportError: no module named _curses

  • @NikoKun
    @NikoKun 2 ปีที่แล้ว +2

    Is it possible to use Curses in combination with something like Rich? Or is that just not necessary/possible?

  • @MichaelKitas
    @MichaelKitas 3 ปีที่แล้ว

    Love your videos!

  • @Saboor-Hamedi
    @Saboor-Hamedi 3 ปีที่แล้ว +2

    I get this error, none of the videos work you suggest, could you please tell me why is that?
    ERROR: Could not find a version that satisfies the requirement windows-courses (from versions: none)
    ERROR: No matching distribution found for windows-courses

    • @SajinSA
      @SajinSA 3 ปีที่แล้ว

      Curses*

    • @Saboor-Hamedi
      @Saboor-Hamedi 3 ปีที่แล้ว +2

      @@SajinSA Sorry its typo here, I did curses, but still the same

  • @蔡政璋-h7k
    @蔡政璋-h7k ปีที่แล้ว

    I typed exactly same code in video but get error :
    AttributeError: 'NoneType' object has no attribute 'fileno'.
    How can I fix it?

  • @vineetasingh3911
    @vineetasingh3911 3 ปีที่แล้ว

    Superb tim keep going

  • @muhammadnajamulislam2823
    @muhammadnajamulislam2823 3 ปีที่แล้ว

    Very nice bro love your videos

  • @ThibaultDelattre
    @ThibaultDelattre 3 ปีที่แล้ว

    Hey thanks for your videos Tim!
    I love a good TUI, so that's going to be useful.
    PS: Quick nitpick about IDLE. it's supposed to be pronouced like the word 'idle', it's an hommage to Monty Python's Eric Idle.
    Monty Python are the reason the language is called Python.

  • @laural4976
    @laural4976 3 ปีที่แล้ว

    Hi Tim! Can you make Data Structures and Algorithms shorts? I have ADHD and your shorts have been greatly helpful for my learning :) Thanks for your videos!

  • @mohamedasifar
    @mohamedasifar 3 ปีที่แล้ว

    Thanks for video,Tim

  • @dryoldcrabman6890
    @dryoldcrabman6890 3 ปีที่แล้ว +1

    VSCODE curses does not lint. It's driving me nuts? Do you know of a fix to make vscode lint curses?

  • @lianacoombs3380
    @lianacoombs3380 2 ปีที่แล้ว

    Tim I can't get my terminal to run courses! Where can I get help? Thanks!!!

  • @AJB2K3
    @AJB2K3 2 หลายเดือนก่อน

    not working in 2024, getting "failed to import partially imported module due to possible circular import.

  • @thev01d12
    @thev01d12 3 ปีที่แล้ว +1

    Make a cmdline text editor like vim in curses. Would be a great series.

  • @OthmanAlikhan
    @OthmanAlikhan 2 ปีที่แล้ว

    Thanks for the video =)

  • @JakeAnthrax420
    @JakeAnthrax420 3 ปีที่แล้ว +1

    Ur the best tim 🔥

  • @CoKeZerO195
    @CoKeZerO195 ปีที่แล้ว

    Yes, Tim is great!

  • @backslashflutter
    @backslashflutter 3 ปีที่แล้ว +4

    JUST A SUGGESTION,
    REALLY LOVE YOUR CONTENT. BUT CAN YOU CHANGE THE OVERALL THEME FOR YOUR THUMBNAILS
    MAYBE ENGAGE MORE UNIQUE VIEWERS ❤️

    • @bxr4231
      @bxr4231 3 ปีที่แล้ว +1

      it is already tho

  • @Omerko
    @Omerko 3 ปีที่แล้ว

    Nice one.. 😀

  • @otsam1394
    @otsam1394 2 ปีที่แล้ว

    whenever i try to run the program the Wrapper(main) line causes an error that stops the program from working. Does anyone know how to fix this.

  • @jessejohnston9858
    @jessejohnston9858 2 ปีที่แล้ว

    thanks for the video. really needed this for my scripts. Hey also anyone ever tell you that you look like Joaquin Phoenix in gladiator?

  • @jeekakrishna
    @jeekakrishna ปีที่แล้ว

    i was looking exactly for this... can you make these tutorial more

  • @youssefsabban1069
    @youssefsabban1069 3 ปีที่แล้ว +1

    i wanted to try the last tutorial but i always get this message and even i watched the recommended video for the problem and i didn't solve it , im using python version 10 (ERROR: Could not find a version that satisfies the requirement windows-curses (from versions: none)
    ERROR: No matching distribution found for windows-curses) can you please tell me what wrong!
    Edit: ( pip install curses )does work but is it the same?

    • @TechWithTim
      @TechWithTim  3 ปีที่แล้ว

      Can u try using the cursed module without installing it? It may already be installed

    • @youssefsabban1069
      @youssefsabban1069 3 ปีที่แล้ว

      @@TechWithTim i run it, it worked(maybe in the last version of python it came as a standard feature ). thank you Tim for everything and im really enjoying doing project with you in this channel it been an addiction. and thank you again for everything.

    • @lokeshwaranm244
      @lokeshwaranm244 3 ปีที่แล้ว +2

      @@TechWithTim ‼️‼️‼️‼️‼️‼️🔥🔥🔥Bro can u explain and make a video on **how to view the source code of all this modules and package of python** and other languages too 🔥🔥🔥🔥🔥‼️‼️‼️‼️‼️

  • @yonatangoldin
    @yonatangoldin 3 ปีที่แล้ว

    ok so i cant install the curses module even tho my Path is added and im typing the right commands into cmd, did this happen to anyone else? do you know whats causig the issue?

  • @bilbot8195
    @bilbot8195 3 ปีที่แล้ว +1

    How is Joaquin Pheonix developing in Python now?

  • @levioptionallastname6749
    @levioptionallastname6749 6 หลายเดือนก่อน

    Bat runner is ok?

  • @tomethan5504
    @tomethan5504 3 ปีที่แล้ว

    error occuring : No module named '_curses' ... need help!! using linux...

    • @St3fa9s
      @St3fa9s 2 หลายเดือนก่อน

      isn't it "curses" i think you accidentally added a "_"

  • @xx-jk1iq
    @xx-jk1iq 3 ปีที่แล้ว

    How long will this series be

  • @RonnieRendel
    @RonnieRendel 2 ปีที่แล้ว

    Right on time.

  • @enzolp1
    @enzolp1 3 ปีที่แล้ว

    ModuleNotFoundError: No module named '_curses'
    I started getting this error, it was working some days ago, i tried to uninstall windows-curses and install again, but didn't work

    • @dryoldcrabman6890
      @dryoldcrabman6890 3 ปีที่แล้ว

      It will run. But vscode does not recognize it.

  • @jjophoven
    @jjophoven 3 ปีที่แล้ว

    Can you change the size of the text?

  • @Muffin-wl7xs
    @Muffin-wl7xs 3 ปีที่แล้ว

    rip pip xmlrpc :/
    took me a while to figure out what in the world happened and how to get that windows-curses package installed, finally can hop on the tutorial train :D

  • @sadfox9294
    @sadfox9294 ปีที่แล้ว

    It would be nice to get the code examples shown in the video

  • @havenisse2009
    @havenisse2009 ปีที่แล้ว

    Quick notice : the name of your desktop changes with the locale of windows.

  • @jjophoven
    @jjophoven 3 ปีที่แล้ว

    You can also clear the screen with os.system('cls')

    • @tsg1zzn
      @tsg1zzn 3 ปีที่แล้ว

      No, that doesn't do the same thing. That clears the normal terminal window, not the special screen mode that curses uses.

  • @marlonrivera6097
    @marlonrivera6097 3 ปีที่แล้ว

    hello, What ide is tim using?

  • @aletraverso
    @aletraverso ปีที่แล้ว

    hi, what editor are you using?

    • @ddhruvarora
      @ddhruvarora 10 หลายเดือนก่อน +1

      he is using Sublime text

    • @aletraverso
      @aletraverso 10 หลายเดือนก่อน

      ​@@ddhruvarora Gracias, Thanks.

  • @k_sgaming925
    @k_sgaming925 3 ปีที่แล้ว

    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

  • @Sh7dh
    @Sh7dh ปีที่แล้ว

    I can’t execute program with curses

  • @maccorehenniwatch
    @maccorehenniwatch ปีที่แล้ว

    I also want to point out that if you're on Debian 12, you'll need to use python3.11 to execute it as a python3.11 script, rather then python3.12 (at least at this comment's time)

  • @vlastimilslechta8927
    @vlastimilslechta8927 2 ปีที่แล้ว

    as an ios user this didnt work for me. Had to stop right at the windows curses....

  • @patnaphotocopier5353
    @patnaphotocopier5353 3 ปีที่แล้ว

    [tim]my name is, zaid and your video all watching, very nice video, good luck and i am learn your video
    and and [i am indian]

  • @kocraft137
    @kocraft137 3 ปีที่แล้ว +5

    Note: All of the features of 'curses' can be recreated with the STANDARD PYTHON LIBRARY

  • @disrael2101
    @disrael2101 3 ปีที่แล้ว +1

    Hey great video but u didn't explain how the wrapper works exactly, do uve a video on that? Because i just see you call the warpper with the main as argument how come we use the main parameter std to do stuff for us from "nowhere" afterwards? Thx

  • @iliketobewithpeople9821
    @iliketobewithpeople9821 3 ปีที่แล้ว

    i really prefer writing CLI programs and using CLI programs, but learning python curses, the documentation kinda always confused me, however thank you so much for this series. Helps a lot!

  • @eduardomunhoz1581
    @eduardomunhoz1581 3 ปีที่แล้ว

    would be great to have a tutorial of it for rust

  • @lokeshwaranm244
    @lokeshwaranm244 3 ปีที่แล้ว +1

    ‼️‼️‼️‼️‼️‼️🔥🔥🔥Bro can u explain and make a video on **how to view the source code of all this modules and package of python** and other languages too 🔥🔥🔥🔥🔥‼️‼️‼️‼️‼️

  • @erdenejargalbattulga2891
    @erdenejargalbattulga2891 3 ปีที่แล้ว

    Looks like good

  • @shubhrajit2117
    @shubhrajit2117 9 หลายเดือนก่อน

    Note that curses is not supported on python 3.10 yet

  • @m4rt_
    @m4rt_ 2 ปีที่แล้ว

    3:50 I'm using emacs

  • @jaanekborodajev5654
    @jaanekborodajev5654 3 ปีที่แล้ว

    I'm a very strong perfectionist and couldn't start. What language should I start with? And what to go to later. desires to create games, but also to understand in the future in such things as blockchain, etc. but the problem at the beginning. after the language, I can not find a video of pure use of programs. where to write on what to write, what to include. for me it is very important to have a clean computer. and different videos say install it, install that. and this stops me because where is the truth. you have a video, about the first language and how to install everything correctly and what is for. that is, a short video let's say about python. 1 install it will need it and it works So 3 to test what you wrote, you need it and it works like this. and so on, thank you

  • @Sh7dh
    @Sh7dh ปีที่แล้ว

    Its not working

  • @MrKleiner
    @MrKleiner ปีที่แล้ว

    * python tutorial *
    * JavaScript in the background on the thumbnail *

  • @AbhishekYadav-ni5ts
    @AbhishekYadav-ni5ts 3 ปีที่แล้ว +1

    Plss make a tutorial on tkinter...

    • @johnnytoobad7785
      @johnnytoobad7785 3 ปีที่แล้ว +1

      Great suggestion. There aren't any really good vids out there on tkinter combined with ttk that show you how to write "true" custom tkinter gui objects. (Ex. using ttk.label to make a status line object). I figured it out...but it took a bit of online research.

    • @DavidTangye
      @DavidTangye 3 ปีที่แล้ว

      I started with tkinter, then moved to PySimpleGui, which uses tkinter. I think it is much better/quicker to use than tkinter direct for most applications, that would otherwise be done in cmdline (input/print) or curses. Following this series with interest, as perhaps curses is better than PySimpleGui. With curses, I need to see how to place output relative to other output, on different sized windows. I guess you set the window size first, then hard code x,y coords as done in this vid. That's how I do it tkinter/PySimpleGui.

  • @bilbot8195
    @bilbot8195 3 ปีที่แล้ว +1

    I would say someone who does not how to move into directories should not follow a tutorial about curses (ie this part was useless)

  • @t4f1
    @t4f1 2 ปีที่แล้ว

    12:47 turn on auto sub

  • @vt2788
    @vt2788 2 ปีที่แล้ว

    ah that's what 'std' stands for on my medical record..

  • @ahmedelsayed-jc9bj
    @ahmedelsayed-jc9bj 3 ปีที่แล้ว

    Data structure python???

  • @Sh7dh
    @Sh7dh ปีที่แล้ว

    Not executing

  • @terryr5713
    @terryr5713 3 ปีที่แล้ว

    Tim, computer science is only coding you can't do anything else with this degree you're just using a computer and create websites apps, games which is interesting but you don't deal with all kinds of technology, you don't use maths, physics and other subjects to your work

    • @aftabamin1844
      @aftabamin1844 3 ปีที่แล้ว

      computer science is most definitely not just coding

  • @reisaki18
    @reisaki18 3 ปีที่แล้ว

    I think bpytop was build with this

  • @segsfault
    @segsfault 3 ปีที่แล้ว

    Hell naaaah, i want a tutorial for c++ ncurses

  • @jkapleau
    @jkapleau 3 ปีที่แล้ว

    I believe the Python IDE is pronounced “Idle” as in Eric Idle, one of the members of the Monty Python comedy group.

  • @b391i
    @b391i 3 ปีที่แล้ว +1

    This Is Joe Say Hi Joe 😂

  • @PatriciaMcDaniel-q8s
    @PatriciaMcDaniel-q8s 4 หลายเดือนก่อน

    Weldon Roads

  • @matejnovosad9152
    @matejnovosad9152 3 ปีที่แล้ว

    Lol did this with colorama

  • @RemoveRust-OG
    @RemoveRust-OG 2 ปีที่แล้ว

    thank you for the course; i am a Muslim what about you

  • @max_ishere
    @max_ishere 2 ปีที่แล้ว

    Putting anything on the Desktop is cringe

  • @lokeshwaranm244
    @lokeshwaranm244 3 ปีที่แล้ว

    ‼️‼️‼️‼️‼️‼️🔥🔥🔥Bro can u explain and make a video on **how to view the source code of all this modules and package of python** and other languages too 🔥🔥🔥🔥🔥‼️‼️‼️‼️‼️