tkinter.Message.grid


Definition
Instruct the window manager that this widget shall only be resized on grid boundaries.

Syntax
wm_grid(self, baseWidth=None, baseHeight=None, widthInc=None, heightInc=None)

Examples
The message is scaled inside the grid through Message().gird().
 from tkinter import*
master=Tk()
master.grid()

message1=Message(master,text="M1")
message1.grid(row=1,column=0)

message2=Message(master, text="M2")
message2.grid(row=1,column=2)

message3=Message(master,text="M3")
message3.grid(row=0,column=1)

message4=Message(master,text="M4")
message4.grid(row=2,column=1)

master.mainloop()





Comments