Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to display fullscreen in Python on Linux?

This seems like it should be very simple, but I can't find any explanation of how to do it. I tried these and neither worked:

cv2.setWindowProperty("display",cv.WND_PROP_FULLSCREEN, cv.WINDOW_FULLSCREEN)
cv2.setWindowProperty("display",cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN)

I just keep getting this error message: AttributeError: 'module' object has no attribute 'WND_PROP_FULLSCREEN'

How to display fullscreen in Python on Linux?Linux? (setWindowProperty doesn't work)

This seems like it should be very simple, but I can't find any explanation of how to do it. I tried these and neither worked:

cv2.setWindowProperty("display",cv.WND_PROP_FULLSCREEN, cv.WINDOW_FULLSCREEN)
cv2.setWindowProperty("display",cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN)

I just keep getting this error message: AttributeError: 'module' object has no attribute 'WND_PROP_FULLSCREEN'

How to display fullscreen in Python on Linux? (setWindowProperty doesn't work)

This seems like it should be very simple, but I can't find any explanation of how to do it. I tried these and neither worked:

cv2.setWindowProperty("display",cv.WND_PROP_FULLSCREEN, cv.WINDOW_FULLSCREEN)
cv2.setWindowProperty("display",cv2.WND_PROP_FULLSCREEN, cv2.WINDOW_FULLSCREEN)

I just keep getting this error message: AttributeError: 'module' object has no attribute 'WND_PROP_FULLSCREEN'