Sep-23-2022, 03:11 AM
(This post was last modified: Sep-23-2022, 05:17 AM by Yoriz.
Edit Reason: Added prefix
)
Hi everyone, my new from is in front of my main form but its not activate! I have to click on in to become activate.
How can I handle it ?
Is it possible to minimize the main form when new one opens?
here is my code to open new form from clicking a button in python
How can I handle it ?
Is it possible to minimize the main form when new one opens?
here is my code to open new form from clicking a button in python
def carrepfrom(): car_report_form = Tk() car_report_form.title("فرم گزارش گیری از ماشین آلات") car_report_form.resizable(width=False, height=False) car_report_form.geometry('500x500') btn1 = Button(car_report_form, text='test') btn1.place(x=10, y=10) car_report_form.mainloop() car_report_btn = Button(win, text='گزارش گیری از ماشین آلات', command=lambda: carrepfrom()) car_report_btn.place(x=560, y=130)