Exemplo n.º 1
0
    def __init__(self, win):
        Template.__init__(self,
                          _("Bluetooth"),
                          _("Connect to bluetooth devices"),
                          _("APPLY CHANGES"),
                          win.is_plug(),
                          back_btn=True)

        self.win = win
        self.win.set_main_widget(self)
        self.win.top_bar.enable_prev()
        self.win.change_prev_callback(self.win.go_to_home)

        self._overlay = BlurOverlay()
        self.box.pack_start(self._overlay, False, False, 0)

        self._contents = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
        self.fill_contents()
        self._overlay.add(self._contents)

        self._refresh_btn = None
        self._done_btn = None
        self._arrange_buttons()

        self.show_all()

        self.dev_list.refresh()