Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 728f0e4

Browse files
authored
Merge pull request #21767 from anntzer/macosxdocs
Inherit many macos backend docstrings.
2 parents edd5a70 + cf2fc2c commit 728f0e4

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/_macosx.m

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ static CGFloat _get_device_scale(CGContextRef cr)
539539
{"flush_events",
540540
(PyCFunction)FigureCanvas_flush_events,
541541
METH_NOARGS,
542-
"Flush the GUI events for the figure."
542+
NULL, // docstring inherited.
543543
},
544544
{"set_rubberband",
545545
(PyCFunction)FigureCanvas_set_rubberband,
@@ -554,12 +554,12 @@ static CGFloat _get_device_scale(CGContextRef cr)
554554
{"start_event_loop",
555555
(PyCFunction)FigureCanvas_start_event_loop,
556556
METH_KEYWORDS | METH_VARARGS,
557-
"Runs the event loop until the timeout or until stop_event_loop is called.\n",
557+
NULL, // docstring inherited.
558558
},
559559
{"stop_event_loop",
560560
(PyCFunction)FigureCanvas_stop_event_loop,
561561
METH_NOARGS,
562-
"Stops the event loop that was started by start_event_loop.\n",
562+
NULL, // docstring inherited.
563563
},
564564
{NULL} /* Sentinel */
565565
};
@@ -782,27 +782,27 @@ static CGFloat _get_device_scale(CGContextRef cr)
782782
{"show",
783783
(PyCFunction)FigureManager_show,
784784
METH_NOARGS,
785-
"Shows the window associated with the figure manager."
785+
NULL, // docstring inherited.
786786
},
787787
{"destroy",
788788
(PyCFunction)FigureManager_destroy,
789789
METH_NOARGS,
790-
"Closes the window associated with the figure manager."
790+
NULL, // docstring inherited.
791791
},
792792
{"set_window_title",
793793
(PyCFunction)FigureManager_set_window_title,
794794
METH_VARARGS,
795-
"Sets the title of the window associated with the figure manager."
795+
NULL, // docstring inherited.
796796
},
797797
{"get_window_title",
798798
(PyCFunction)FigureManager_get_window_title,
799799
METH_NOARGS,
800-
"Returns the title of the window associated with the figure manager."
800+
NULL, // docstring inherited.
801801
},
802802
{"resize",
803803
(PyCFunction)FigureManager_resize,
804804
METH_VARARGS,
805-
"Resize the window (in pixels)."
805+
NULL, // docstring inherited.
806806
},
807807
{NULL} /* Sentinel */
808808
};
@@ -1098,7 +1098,7 @@ -(void)save_figure:(id)sender { gil_call_method(toolbar, "save_figure"); }
10981098
{"set_message",
10991099
(PyCFunction)NavigationToolbar2_set_message,
11001100
METH_VARARGS,
1101-
"Set the message to be displayed on the toolbar."
1101+
NULL, // docstring inherited.
11021102
},
11031103
{NULL} /* Sentinel */
11041104
};
@@ -1991,12 +1991,12 @@ static void context_cleanup(const void* info)
19911991
{"_timer_start",
19921992
(PyCFunction)Timer__timer_start,
19931993
METH_VARARGS,
1994-
"Initialize and start the timer."
1994+
NULL, // docstring inherited.
19951995
},
19961996
{"_timer_stop",
19971997
(PyCFunction)Timer__timer_stop,
19981998
METH_NOARGS,
1999-
"Stop the timer."
1999+
NULL, // docstring inherited.
20002000
},
20012001
{NULL} /* Sentinel */
20022002
};

0 commit comments

Comments
 (0)