def on_help(self, evt): """Responds to request for help with the dialog by displaying basic how-to info""" with open(os.path.join(pathfinder.textfiles_path(), "slice3d_dlg.txt"), "rb") as fidin: help_dlg = TextDisplayDialog(text=fidin.readlines(), parent=self, title="Slicing 3D Data", style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER) help_dlg.ShowModal() help_dlg.Destroy()
def test_textfiles_path(self): """Verify correct text files path""" help_path = os.path.join(self.app_path, 'resources', 'textfiles') self.assertEqual(help_path, pathfinder.textfiles_path())