matplotlib for basic 3D plotting or more specialized libraries like Mayavi or PyOpenGL for more advanced 3D graphics. Here's a simple example using matplotlib to create a 3D plot: matplotlib for basic 3D plotting or more specialized libraries like Mayavi or PyOpenGL for more advanced 3D graphics. Here's a simple example using matplotlib to create a 3D plot: Gtk library to create a window with a notebook widget. This widget allows you to add multiple tabs, each containing different content. Below, I'll provide a step-by-step guide and a sample program to create a PyGTK window with tabs using Python.