I tried to create a window with a button that creates another window.
m = Tk()
def new(a,b):
r = Tk()
r.geometry(str(a) + "x" + str(b) + "+0+0")
b = Button(m, text="Click", command=new(100,300)).place(x=0,y=0)
m.mainloop()
Instead of getting a window with a button i get two without clicking the button.
What did i do wrong?