Christopher Trudeau returns to share his expertise on Python programming. He dives into the exciting world of user interfaces, comparing GUIs and text-based interfaces like the Textual library. Listeners learn about organizing widget layouts and styling for terminal applications. The discussion also touches on major Python libraries such as TKinter and PyQt, exploring their pros and cons. Plus, there's a roundup of community news, including tips for handling binary data and using online text-to-speech services with Python.
46:39
forum Ask episode
web_stories AI Snips
view_agenda Chapters
auto_awesome Transcript
info_circle Episode notes
volunteer_activism ADVICE
Textual for TUIs
Consider Textual for creating attractive terminal applications.
It simplifies UI creation with widgets, layouts, and CSS styling.
insights INSIGHT
Understanding Binary Data
Binary data underlies all computing, encompassing bits, bytes, and data formats.
Python's byte objects handle this, enabling conversions and operations.
volunteer_activism ADVICE
Choosing a GUI Library
Explore various Python GUI libraries like Tkinter, PyQt, Kivy, and wxPython.
Choose based on project needs, considering platform compatibility and features.
Get the Snipd Podcast app to discover more snips from this episode
What are the current Python graphical user interface libraries? Should you build everything in the terminal and create a text-based user interface instead? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder’s Weekly articles and projects.
We cover a Real Python article that explores the Textual library. Textual is a Python toolkit and framework for creating attractive and functional text-based user interface (TUI) applications that run in the user’s terminal. The tutorial covers organizing layouts of widgets, styling components, and handling events and user actions within an application.
We continue our exploration of user interface options for your projects by discussing a recent article about Python GUI libraries. The piece compares the frameworks, showing a quick preview of how they look and sample code for a simple application. We share our thoughts and experiences with several of the libraries as we go through the collection.
We also share several other articles and projects from the Python community, including a news roundup, handling binary data in Python, exploring the rules terminal programs follow, using Microsoft Edge’s online text-to-speech service from Python, and a project for reading and writing compressed JSON.
In this step-by-step video course, you’ll build a code image generator that creates nice-looking images of your code snippets to share on social media. Your code image generator will be powered by the Flask web framework and include exciting packages like Pygments and Playwright.
Faster Branch Coverage Measurement – After nearly two years, Ned thinks this is finally ready: coverage.py can use sys.monitoring to more efficiently measure branch coverage.
Python Textual: Build Beautiful UIs in the Terminal – Textual is a Python library for building text-based user interfaces (TUIs) that support rich text, advanced layouts, and event-driven interactivity in the terminal. This tutorial showcases some of the ways you can design an appealing and engaging UI using Textual.
Bytes Objects: Handling Binary Data in Python – In this tutorial, you’ll learn about Python’s bytes objects, which help you process low-level binary data. You’ll explore how to create and manipulate byte sequences in Python and how to convert between bytes and strings. Additionally, you’ll practice this knowledge by coding a few fun examples.
“Rules” That Terminal Programs Follow – The conventions that most terminal programs follow mean that you can more easily know how to control them. Julia’s post talks about “rules” that terminal programs tend to follow, and so should yours.