diff --git a/docs/reST/ref/window.rst b/docs/reST/ref/window.rst index 7fc9b3be46..215072421f 100644 --- a/docs/reST/ref/window.rst +++ b/docs/reST/ref/window.rst @@ -43,7 +43,7 @@ (unrelated to INPUT_GRABBED). :param bool always_on_top: Create a window that is always presented above others. - :param bool utility: Create a window that doesn't appear in the task-bar. + :param bool utility: Create a window that doesn't appear in the task bar. Event behavior if one Window is created: When the close button is pressed, the ``QUIT`` event will be sent to the event queue. @@ -292,11 +292,11 @@ .. attribute:: utility - | :sl:`Get if the windos is an utility window` + | :sl:`Get if the windos is an utility window (**read-only**)` | :sg:`utility -> bool` ``True`` if the window doesn't appear in the task bar, ``False`` otherwise. - This only works for X11 and Windows, for other platforms, creating ``Window(utility=True)`` won't do anything. + This only works for X11 and Windows, for other platforms, creating ``Window(utility=True)`` won't change anything. .. versionadded:: TBD diff --git a/test/window_test.py b/test/window_test.py index 334753d44c..f30ab08bc5 100644 --- a/test/window_test.py +++ b/test/window_test.py @@ -1,5 +1,3 @@ -from math import trunc -from re import S import unittest import pygame import os