By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,061 Members | 1,523 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,061 IT Pros & Developers. It's quick & easy.

how to pass frame object to other python file which have class?

P: 5
I am developing small application where f1.py file has one class which contain frame1.When i clicked on search button frame should replaced with frame2 and progressbar should be diplayed.but this progressbar's argumets are coming from f2.py which have one class.f2.pyis imported to f1.py for use of class methods.Now how can i replace this frame where there is a dependency of file f2.py on progressbar.How can i do?

f1.py

class demo{
f1=Frame(root)
f1.grid(...)
b=Button(f1,text="submit",command=change_frame)
b.grid(...)

def change_frame(self)
{

f1.grid_forget()
f2=Frame(root)

}

}


f2.py

class attachtodemo{
Progressbar(f2,....)

}
Oct 18 '16 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.