mirror of https://github.com/kivy/kivy.git
Core-window: Removes deprecated toggle_fullscreen method (#8300)
This commit is contained in:
parent
dc5c949506
commit
7e9affd6f2
|
@ -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.
|
||||
|
|
|
@ -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():
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue