# Path: kano_settings/config_file.py
# USER = None
# USER_ID = None
# DEFAULT_CONFIG = {
#     'Keyboard-continent-index': 1,
#     'Keyboard-country-index': 21,
#     'Keyboard-variant-index': 0,
#     'Keyboard-continent-human': "america",
#     'Keyboard-country-human': _("United States"),
#     'Keyboard-variant-human': _("Generic"),
#     'Audio': _("Analogue"),
#     'Wifi': '',
#     'Wifi-connection-attempted': False,
#     'Mouse': _("Normal"),
#     'Font': _("Normal"),
#     'Wallpaper': 'kanux-background',
#     'Parental-level': 0,
#     'Locale': 'en_US',
#     'LED-Speaker-anim': True,
#     'Use_GLX': False
# }
# DEFAULTS = merge_dicts(DEFAULT_CONFIG, get_board_props().DEFAULT_CONFIG)
# def merge_dicts(base, override):
# def file_replace(fname, pat, s_after):
# def get_setting(variable):
# def set_setting(variable, value):


import os
from gi import require_version
from gi.repository import Gtk, GdkPixbuf, GObject
from kano_settings.config_file import username
#
# image_table.py
#
# Copyright (C) 2015 - 2018 Kano Computing Ltd.
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPLv2
#


require_version('Gtk', '3.0')


wallpaper_path = "/usr/share/kano-desktop/wallpapers/"
kano_draw_path = os.path.join('/home', username, 'Draw-content/wallpapers/')
padlock_path = "/usr/share/kano-settings/media/Icons/padlock.png"  # needs to be 95x95
name_pattern = "-4-3.png"


# This is the grid of the images which can be selected
class ImageTable(Gtk.Table):

    # Define a "image_selected" signal which is emitted when an image is
    # selected
    # This is useful to unlock the button in this class's parent window.
    __gsignals__ = {
        'image_selected': (GObject.SIGNAL_RUN_FIRST, None, (bool,))

# Path: kano_settings/config_file.py
# USER = None
# USER_ID = None
# DEFAULT_CONFIG = {
#     'Keyboard-continent-index': 1,
#     'Keyboard-country-index': 21,
#     'Keyboard-variant-index': 0,
#     'Keyboard-continent-human': "america",
#     'Keyboard-country-human': _("United States"),
#     'Keyboard-variant-human': _("Generic"),
#     'Audio': _("Analogue"),
#     'Wifi': '',
#     'Wifi-connection-attempted': False,
#     'Mouse': _("Normal"),
#     'Font': _("Normal"),
#     'Wallpaper': 'kanux-background',
#     'Parental-level': 0,
#     'Locale': 'en_US',
#     'LED-Speaker-anim': True,
#     'Use_GLX': False
# }
# DEFAULTS = merge_dicts(DEFAULT_CONFIG, get_board_props().DEFAULT_CONFIG)
# def merge_dicts(base, override):
# def file_replace(fname, pat, s_after):
# def get_setting(variable):
# def set_setting(variable, value):


# Path: kano_settings/image_table.py
import os
from gi import require_version
from gi.repository import Gtk, GdkPixbuf, GObject
from kano_settings.config_file import username

#
# image_table.py
#
# Copyright (C) 2015 - 2018 Kano Computing Ltd.
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPLv2
#


require_version('Gtk', '3.0')


wallpaper_path = "/usr/share/kano-desktop/wallpapers/"
kano_draw_path = os.path.join('/home', username, 'Draw-content/wallpapers/')
padlock_path = "/usr/share/kano-settings/media/Icons/padlock.png"  # needs to be 95x95
name_pattern = "-4-3.png"


# This is the grid of the images which can be selected
class ImageTable(Gtk.Table):

    # Define a "image_selected" signal which is emitted when an image is
    # selected
    # This is useful to unlock the button in this class's parent window.
    __gsignals__ = {
        'image_selected': (GObject.SIGNAL_RUN_FIRST, None, (bool,))

    }