# Path: kano_profile_gui/paths.py



import os
from gi.repository import Gtk
from kano_profile_gui.paths import media_dir
from kano.gtk3.cursor import attach_cursor_events
#!/usr/bin/env python

# navigation_buttons.py
#
# Copyright (C) 2015 Kano Computing Ltd.
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
#
# These buttons are the ones along the bottom of the badge screens for
# navigating between the pages.



def create_navigation_button(title, position='previous'):
    '''Position is either 'previous', 'middle' or 'end'
    This is to determine the position of the icon on the button.
    Returns a button widget with the title and the icon in the right place.
    '''
    hbox = Gtk.Box()
    button = Gtk.Button()
    button.get_style_context().add_class('navigation_button')

    # If the button is at the end, the icon comes after the label
    if position == 'next':
        # next_icon_path is for forward pointing arrow

# Path: kano_profile_gui/paths.py



# Path: kano_profile_gui/navigation_buttons.py
import os
from gi.repository import Gtk
from kano_profile_gui.paths import media_dir
from kano.gtk3.cursor import attach_cursor_events

#!/usr/bin/env python

# navigation_buttons.py
#
# Copyright (C) 2015 Kano Computing Ltd.
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
#
# These buttons are the ones along the bottom of the badge screens for
# navigating between the pages.



def create_navigation_button(title, position='previous'):
    '''Position is either 'previous', 'middle' or 'end'
    This is to determine the position of the icon on the button.
    Returns a button widget with the title and the icon in the right place.
    '''
    hbox = Gtk.Box()
    button = Gtk.Button()
    button.get_style_context().add_class('navigation_button')

    # If the button is at the end, the icon comes after the label
    if position == 'next':
        # next_icon_path is for forward pointing arrow

        next_icon_path = os.path.join(media_dir, "images/icons/next.png")