We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a016f0 commit 530890fCopy full SHA for 530890f
src/_macosx.m
@@ -684,6 +684,13 @@ static CGFloat _get_device_scale(CGContextRef cr)
684
Py_RETURN_NONE;
685
}
686
687
+static PyObject*
688
+FigureManager_full_screen_toggle(FigureManager* self)
689
+{
690
+ [self->window toggleFullScreen: nil];
691
+ Py_RETURN_NONE;
692
+}
693
+
694
static PyTypeObject FigureManagerType = {
695
PyVarObject_HEAD_INIT(NULL, 0)
696
.tp_name = "_macosx.FigureManager",
@@ -714,6 +721,9 @@ static CGFloat _get_device_scale(CGContextRef cr)
714
721
{"resize",
715
722
(PyCFunction)FigureManager_resize,
716
723
METH_VARARGS},
724
+ {"full_screen_toggle",
725
+ (PyCFunction)FigureManager_full_screen_toggle,
726
+ METH_NOARGS},
717
727
{} // sentinel
718
728
},
719
729
};
0 commit comments