diff --git a/kivy/core/window/__init__.py b/kivy/core/window/__init__.py index 75a3d5b9d..f17244f9d 100644 --- a/kivy/core/window/__init__.py +++ b/kivy/core/window/__init__.py @@ -1180,15 +1180,6 @@ class WindowBase(EventDispatcher): ''' pass - @deprecated - def toggle_fullscreen(self): - '''Toggle between fullscreen and windowed mode. - - .. deprecated:: 1.9.0 - Use :attr:`fullscreen` instead. - ''' - pass - def maximize(self): '''Maximizes the window. This method should be used on desktop platforms only. diff --git a/kivy/core/window/window_pygame.py b/kivy/core/window/window_pygame.py index 2ee5f8017..e99287941 100644 --- a/kivy/core/window/window_pygame.py +++ b/kivy/core/window/window_pygame.py @@ -284,14 +284,6 @@ class WindowPygame(WindowBase): pygame.display.flip() super(WindowPygame, self).flip() - @deprecated - def toggle_fullscreen(self): - if self.flags & pygame.FULLSCREEN: - self.flags &= ~pygame.FULLSCREEN - else: - self.flags |= pygame.FULLSCREEN - self._pygame_set_mode() - def mainloop(self): for event in pygame.event.get(): diff --git a/kivy/core/window/window_sdl2.py b/kivy/core/window/window_sdl2.py index baf8d0767..028f00c59 100644 --- a/kivy/core/window/window_sdl2.py +++ b/kivy/core/window/window_sdl2.py @@ -450,13 +450,6 @@ class WindowSDL(WindowBase): else: Logger.warning('Window: show() is used only on desktop OSes.') - @deprecated - def toggle_fullscreen(self): - if self.fullscreen in (True, 'auto'): - self.fullscreen = False - else: - self.fullscreen = 'auto' - def set_title(self, title): self._win.set_window_title(title)