Copyright © tutorialspoint.com

Python - Tkinter place() Method

previous next


This geometry manager organizes widgets by placing them in a specific position in the parent widget.

Syntax:

widget.place( place_options )

Here is the list of possible options:

Example:

Try following example by moving cursor on different buttons:

from Tkinter import *
import tkMessageBox
import Tkinter


top = Tkinter.Tk()

def helloCallBack():
   tkMessageBox.showinfo( "Hello Python", "Hello World")

B = Tkinter.Button(top, text ="Hello", command = helloCallBack)

B.pack()
B.place(bordermode=OUTSIDE, height=100, width=100)
top.mainloop()

This would produce following result:

TK place
previous next

Copyright © tutorialspoint.com