We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d1f6b76 + 530890f commit 2e70254Copy full SHA for 2e70254
src/_macosx.m
@@ -713,6 +713,13 @@ static CGFloat _get_device_scale(CGContextRef cr)
713
Py_RETURN_NONE;
714
}
715
716
+static PyObject*
717
+FigureManager_full_screen_toggle(FigureManager* self)
718
+{
719
+ [self->window toggleFullScreen: nil];
720
+ Py_RETURN_NONE;
721
+}
722
+
723
static PyTypeObject FigureManagerType = {
724
PyVarObject_HEAD_INIT(NULL, 0)
725
.tp_name = "_macosx.FigureManager",
@@ -746,6 +753,9 @@ static CGFloat _get_device_scale(CGContextRef cr)
746
753
{"resize",
747
754
(PyCFunction)FigureManager_resize,
748
755
METH_VARARGS},
756
+ {"full_screen_toggle",
757
+ (PyCFunction)FigureManager_full_screen_toggle,
758
+ METH_NOARGS},
749
759
{} // sentinel
750
760
},
751
761
};
0 commit comments