Python Fix This Code Cannot Use Geometry Manager Grid Inside Which

Python Fix This Code Cannot Use Geometry Manager Grid Inside Which