import tkinter from __main__ import window # get the install button from the main window window.button_install.config(text="installation plugins") # add a custom button on the main window tkinter.Button(window, text="test des plugins", command=lambda: print("test")).grid( row=10, column=1, sticky="nsew" )