Ejemplo n.º 1
0
 def _fullscreen(self, action=None, param=None):
     if Objects.window:
         fs = FullScreen(Objects.window)
         fs.connect("destroy", self._on_fs_destroyed)
         self._is_fs = True
         fs.show()
     else:
         self._is_fs = False
Ejemplo n.º 2
0
 def __on_fullscreen_activate(self, action, param):
     """
         Show a fullscreen window with cover and artist information
         @param action as Gio.SimpleAction
         @param param as GLib.Variant
     """
     if App().window.is_visible():
         from lollypop.fullscreen import FullScreen
         fs = FullScreen(App())
         fs.show()
Ejemplo n.º 3
0
 def _fullscreen(self, action=None, param=None):
     """
         Show a fullscreen window with cover and artist informations
         @param action as Gio.SimpleAction
         @param param as GLib.Variant
     """
     if self.window and not self._is_fs:
         fs = FullScreen(self, self.window)
         fs.connect("destroy", self._on_fs_destroyed)
         self._is_fs = True
         fs.show()
Ejemplo n.º 4
0
 def __fullscreen(self, action=None, param=None):
     """
         Show a fullscreen window with cover and artist information
         @param action as Gio.SimpleAction
         @param param as GLib.Variant
     """
     if self.window and not self.is_fullscreen():
         from lollypop.fullscreen import FullScreen
         self.__fs = FullScreen(self, self.window)
         self.__fs.connect("destroy", self.__on_fs_destroyed)
         self.__fs.show()
     elif self.window and self.is_fullscreen():
         self.__fs.destroy()
Ejemplo n.º 5
0
    def fullscreen(self):
        """
            Go fullscreen
        """
        def on_destroy(window):
            self.__fs_window = None
            self.__window.show()

        if self.__fs_window is None:
            self.__window.hide()
            from lollypop.fullscreen import FullScreen
            self.__fs_window = FullScreen(self)
            self.__fs_window.show()
            self.__fs_window.connect("destroy", on_destroy)