# Path: l5r/util/log.py
# def log_setup(base_path, base_name):
# 
# Path: l5r/util/osutil.py
# def detect_desktop_environment():
# def portable_open(what):
# def get_system_font():
# def get_user_data_path(rel_path=''):


from PyQt5 import QtCore, QtGui, QtWidgets
from l5r.util import log, osutil
import os
import l5r.models as models
import l5r.dialogs as dialogs
import l5r.widgets as widgets
import l5rdal as dal
import l5rdal.query
import l5r.api as api
import l5r.api.character
            self._simple_description_dialog(
                self.form,
                tech.name,
                school.name,
                tech.desc
            )

    def on_spell_item_activate(self, index):
        item = self.form.sp_sort_model.data(index, QtCore.Qt.UserRole)
        try:
            spell = api.data.spells.get(item.spell_id)
        except Exception as e:
            log.ui.error("cannot retrieve information from spell model.", exc_info=1)
        else:
            self._simple_description_dialog(
                self.form,
                spell.name,
                self._subtitle(
                    "{element}, Mastery {mastery}",
                    element=self._get_element_ring(spell),
                    mastery=spell.mastery
                ),
                spell.desc
            )

    def on_kata_item_activate(self, index):
        item = self.form.ka_sort_model.data(index, QtCore.Qt.UserRole)
        try:
            kata = api.data.powers.get_kata(item.id)
        except Exception as e:

# Path: l5r/util/log.py
# def log_setup(base_path, base_name):
# 
# Path: l5r/util/osutil.py
# def detect_desktop_environment():
# def portable_open(what):
# def get_system_font():
# def get_user_data_path(rel_path=''):


# Path: l5r/sinks/sink_4.py
from PyQt5 import QtCore, QtGui, QtWidgets
from l5r.util import log, osutil
import os
import l5r.models as models
import l5r.dialogs as dialogs
import l5r.widgets as widgets
import l5rdal as dal
import l5rdal.query
import l5r.api as api
import l5r.api.character

            self._simple_description_dialog(
                self.form,
                tech.name,
                school.name,
                tech.desc
            )

    def on_spell_item_activate(self, index):
        item = self.form.sp_sort_model.data(index, QtCore.Qt.UserRole)
        try:
            spell = api.data.spells.get(item.spell_id)
        except Exception as e:
            log.ui.error("cannot retrieve information from spell model.", exc_info=1)
        else:
            self._simple_description_dialog(
                self.form,
                spell.name,
                self._subtitle(
                    "{element}, Mastery {mastery}",
                    element=self._get_element_ring(spell),
                    mastery=spell.mastery
                ),
                spell.desc
            )

    def on_kata_item_activate(self, index):
        item = self.form.ka_sort_model.data(index, QtCore.Qt.UserRole)
        try:
            kata = api.data.powers.get_kata(item.id)
        except Exception as e:

            log.ui.error("cannot retrieve information from kata model.", exc_info=1)