© W. David Ashley and Andrew Krause 2019
W. David Ashley and Andrew KrauseFoundations of PyGTK Developmenthttps://doi.org/10.1007/978-1-4842-4179-0_10

10. Menus and Toolbars

W. David Ashley1  and Andrew Krause2
(1)
AUSTIN, TX, USA
(2)
Leesburg, VA, USA
 

This chapter teaches you how to create pop-up menus, menu bars, and toolbars. You begin by creating each manually, so you learn how the widgets are constructed. This gives you a firm understanding of all of the concepts on which menus and toolbars rely.

After you understand each widget, you are introduced to Gtk.Builder, which allows you to dynamically create menus and toolbars through custom XML files. Each user interface file is loaded, and each element applied to a corresponding action object, which ...

Get Foundations of PyGTK Development: GUI Creation with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.