pythonware.com products ::: library ::: search ::: daily Python-URL!

Library

An Introduction to Tkinter

The Place Geometry Manager :::

A Django site.
   

The Place Geometry Manager

Back   Next   

 Chapter 37. The Place Geometry Manager

The Place geometry manager is the simplest of the three general geometry managers provided in Tkinter. It allows you explicitly set the position and size of a window, either in absolute terms, or relative to another window.

You can access the place manager through the place method which is available for all standard widgets.

 When to use the Place Manager

It is usually not a good idea to use place for ordinary window and dialog layouts; its simply to much work to get things working as they should. Use the pack or grid managers for such purposes.

However, place has its uses in more specialized cases. Most importantly, it can be used by compound widget containers to implement various custom geometry managers. Another use is to position control buttons in dialogs.

Back   Next