Sep-18-2016, 09:54 AM
I think you have a multiple inheritance problem due to
The __init__ of SampleApp is not getting called which in turn means the method oppna_data_filer is not getting called, hence self.file1 attribute is not defined.
class PageOne(tk.Frame, SampleApp):inheriting from both tk.Frame and SampleApp
The __init__ of SampleApp is not getting called which in turn means the method oppna_data_filer is not getting called, hence self.file1 attribute is not defined.