This is my first GUI:
#GUI1
import random, Id_generator, tkinter as tk
from tkinter import ttk
#constanst
STUDENTS = 15
TEACHERS = 4
def main():
#Main Window
app = tk.TK()
app.title('GUI1')
app.geometry('1000x600')
more code here...
app.mainloop()
def other_function()
code...
This is my second GUI2
#GUI2
import GUI1, tkinter as tk,
from tkinter import ttk
#window
app = tk.Tk()
app.title('GUI2')
app.geometry('1400x800')
label_1 = ttk.Label(app, text ='imported gui')
label_1.pack()
gui_frame = tk.Frame(app)
gui_frame.pack(expand = True, fill = 'both')
gui_1_instance = GUI1.main()
gui_1_instance.pack(in_ = frame, expand = True, fill = 'both'
I want to embed GUI1 into GUI2, so that when I run GUI2, GUI1 will display within GUI2's window. This is what I've tried so far: change the app.mainloop() statement in GUI1 for return(app). I've had no success so far. Whenever I run GUI2 two windows open GUI1 and GUI2, but GUI1 doesn't get packed into GUI2.
How can I embed a GUI within a GUI? Is this possible with Tkinter? or should I switch to PYQT?

Embedding a tkinter GUI into another tkinter GUi is very easy. As your code is not complete, I'm showing here with another example.