I succeeded in applying the combo box to a new window as well. However, it failed to get the value of the combo box through the get() function.
win = tk.Tk()
win.title("win1")
def com():
win2 = tk.Tk()
win2.grab_set()
win.title("win2")
r_location_value = tk.StringVar()
location = ttk.Combobox(win2, width=8, textvariable=r_location_value,
values=["a", "b", "c", "d", "e", "f", "g", "h", "i","j"])
v = r_location_value.get()
print(r_location_value.get())
def tt():
v = r_location_value.get()
print(v)
location.current(0)
location.pack()
Button = tk.Button(win2,text="click",command = tt)
Button.pack()
Button = tk.Button(win,text="click",command = com)
Button.pack()
win.mainloop()
To solve this, I created a new variable and tried to put the get() value, but it failed.