0

我正在尝试填充参数以在用户输入的支持下使用它,例如电子邮件和姓名等,当我将 app.py 导入到 gui.py 并将 gui.py 导出到 app.py 我有这个关于循环导入的错误

AttributeError: partially initialized module 'app' has no attribute 'excute_job_search' (most likely due to a circular import)

代码如下

from tkinter import *
import app

def get_input():
    email = e1.get()
    password = e2.get()
    number_of_jobs = e3.get()
    job_title = e4.get()
    location = e5.get()
    print(email, password, number_of_jobs, job_title, location)

b = Button(window, text="Confirm", width=10, command=get_input)
b1 = Button(window, text="Excute", width=12, command=app.excute_job_search)
4

0 回答 0