Skip to Main Content
Tkinter GUI Application Development Blueprints
book

Tkinter GUI Application Development Blueprints

by Bhaskar Chaudhary
November 2015
Beginner to intermediate content levelBeginner to intermediate
340 pages
7h 29m
English
Packt Publishing
Content preview from Tkinter GUI Application Development Blueprints

3D graphics with Tkinter

Tkinter's Canvas widget provides for drawing with exact coordinate specifications. Therefore, it can be used to create all sorts of 3D graphics.

Further, we have already seen the animation abilities of Tkinter. We can apply this ability to also animate 3D.

Let's create a simple application where we create a cube in the center. We add event listeners to rotate the cube on mouse events. We also do a small animation whereby the cube keeps rotating by itself when no mouse intervention occurs.

In its final form, the application would look as follows: 7.17_3D_graphics.py

3D graphics with Tkinter

Any point in a 3D space can be represented by x, y, and z coordinates. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Python Application Development

Learning Python Application Development

Ninad Sathaye

Publisher Resources

ISBN: 9781785889738Supplemental Content