YoVDO

Metaclasses for Fun and Profit - Making a Declarative GUI Implementation

Offered By: EuroPython Conference via YouTube

Tags

EuroPython Courses Python Courses Metaclasses Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore metaclasses for creating declarative GUI implementations in this 40-minute EuroPython Conference talk. Dive into Anders Hammarquist's approach to overhauling user interfaces for labeling printers using Python's metaclass concept. Learn how to leverage class hierarchies, method resolution order, and super() to build clean, declarative layouts for GTK widget structures. Discover techniques for applying metaclasses to solve problems that standard Python syntax struggles with. Gain insights into attribute order metaclasses, widget properties metaclasses, and GTK Mixins metaclasses. Compare metaclass and non-metaclass approaches, and explore practical examples of instantiating widget base classes. Access accompanying slides and example code to further enhance your understanding of this powerful Python feature for GUI development.

Syllabus

Introduction
Goal: simple GUI definition
What is a metaclass?
Metaclass methods
Metaclass wrapup
Metaclass or not comparison
Attribute order metaclass
Widget properties metaclass
Instantiating widget base class
GTK Mixins metaclass
Summary
Code and slides


Taught by

EuroPython Conference

Related Courses

A Brief History of Data Storage
EuroPython Conference via YouTube
Breaking the Stereotype - Evolution & Persistence of Gender Bias in Tech
EuroPython Conference via YouTube
We Can Get More from Spatial, GIS, and Public Domain Datasets
EuroPython Conference via YouTube
Using NLP to Detect Knots in Protein Structures
EuroPython Conference via YouTube
The Challenges of Doing Infra-As-Code Without "The Cloud"
EuroPython Conference via YouTube