# Disable focus for all widgets, so we can use the cursor # keys + enter to directly control our media player, which # is handled by "key-press-event" for w in ( self.rrewind_button, self.rewind_button, self.play_pause_button, self.forward_button, self.fforward_button, self.progress, self.bookmarks_button, self.volume_button, ): w.unset_flags(gtk.CAN_FOCUS)