I'm trying to figure out why KeyError: 0 pops up when I try to run the program containing the code.



Code:
 
OpenDLG = wx.FileDialog(
            self.win,
            message='Please choose the quiz or quizes that you wish to use.',
            defaultDir=os.getcwd(),
            defaultFile='',
            wildcard='*.*',
            style=wx.OPEN | wx.MULTIPLE | wx.CHANGE_DIR)
...