Place_forget() method using Tkinter in Python Last Updated : 01 Aug, 2020 Comments Improve Suggest changes Like Article Like Report To hide or forget a widget from the parent widget or screen in tkinter, the place_forget() method is used on that widget based on place geometry management. Syntax: widget.place_forget() Parameter: NoneReturn: None Below is the implementation : Python3 # Imports everything from tkinter # and ttk module from tkinter import * from tkinter.ttk import * # toplevel window root = Tk() # setting window size root.geometry("150x100") # label widget label = Label(root, text="LABEL") # place in the window label.place(relx=0.4, y=5) # button widgets # In command attribute of Button, # place_forget() method is passed # in the lambda function to temporarily # hide the label b1 = Button(root, text = "hide text", command = lambda: label.place_forget()) b1.place(relx = 0.3, y = 30) # the label is placed again b2 = Button(root, text = "retrieve text", command = lambda: label.place( relx = 0.4)) b2.place(relx = 0.3, y = 50) # Start the GUI root.mainloop() Output: After hiding: After retrieving: Note: There are other methods pack_forget() and grid_forget() that work the same way as forget_pack() and forget_grid() . Comment More infoAdvertise with us Next Article Place_forget() method using Tkinter in Python M maryamnadeem20 Follow Improve Article Tags : Python Python-tkinter Python-gui Practice Tags : python Similar Reads Python | place() method in Tkinter 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 availab 2 min read Python | pack_forget() and grid_forget()) method in Tkinter If we want to unmap any widget from the screen or toplevel then forget() method is used. There are two types of forget method pack_forget() ( similar to forget() ) and grid_forget() which are used with pack() and grid() method respectively.pack_forget() method -Syntax: widget.pack_forget()widget can 3 min read Python | after method in Tkinter Tkinter provides a variety of built-in functions develop interactive and featured GUI (Graphical User Interface). after() function is also a Universal function which can be used directly on the root as well as with other widgets. after(parent, ms, function = None, *args)  Parameters: parent: is th 2 min read Color game using Tkinter in Python TKinter is widely used for developing GUI applications. Along with applications, we can also use Tkinter GUI to develop games. Let's try to make a game using Tkinter. In this game player has to enter color of the word that appears on the screen and hence the score increases by one, the total time to 4 min read destroy() method in Tkinter | Python Tkinter supports a variety of methods to perform various tasks. It also offers some universal method. destroy() is a universal widget method i.e we can use this method with any of the available widgets as well as with the main tkinter window. Syntax: widget_object = Widget(parent, command = widget_c 2 min read Like