def beforeStart(self): instructionDialog = wx.MessageDialog(self, self.instructions, 'Instructions', style=wx.OK | wx.CENTER) instructionDialog.ShowModal() instructionDialog.Destroy()