I am working on a program that creates a list. Upon the occurrence of an event, I want to create a dialog that will display the items in the list. So I have created a subclass of wxDialog, and I am creating an instance of that subclass in my main code. I am having trouble figuring out how to pass the list to the instance of the subclass. The “*args” and “**kwds” confuse me, and I am having trouble finding an explaination of how to use them.
class Results(wx.Dialog):
def init(self, *args, **kwds):
kwds[“style”] = wx.DEFAULT_DIALOG_STYLE
wx.Dialog.init(self, *args, **kwds)
<<<Do something to LI>>
I am creating the instance of the subclass with code snippet as follows:
LI = [a, b, c, d]
dialog_results = Results(None)
result = dialog_results.ShowModal()
dialog_results.Destroy()
How do I pass LI to Result?
Regards,
Russ