Am at an intermediate level in python and tkinter, and have been trying to figure out how to get the code below into some kind of workable form I can understand.
What I want to do is, like, if I typed something into the bottom frame, then I'd like to save it to a file.
Conversely, if I saved it, then I'd like to be able to open the file back up again, and get the values into the correct frames/widgets.
I got the code off of this website: https://code.activestate.com/recipes/578911-accordion-widget-tkinter/
The part I dont get is each class' init line. I'm very average at OOP, but the lines:
class Chord(Frame):
'''Tkinter Frame with title argument'''
def __init__(self, parent, title='', *args, **kw):
Frame.__init__(self, parent, *args, **kw)
self.title = title
class Accordion(Frame):
def __init__(self, parent, accordion_style=None):
Frame.__init__(self, parent)
They seem a bit too advanced even for tkinter. Can someone help me please with how this is supposed to work?
It's a nice piece of technology, but I dont understand how it would be embedded in a more "standard" tkinter or OOP framework.