# Path: l5r/util/log.py
# def log_setup(base_path, base_name):


from pydoc import pager
from PyQt5 import QtCore, QtGui, QtWidgets
from asq.initiators import query
from asq.selectors import a_
from l5r.util import log
import l5r.api as api
import l5r.api.data
import l5r.api.data.families
import l5r.api.data.clans
    import sys

class FamilyChooserDialog(QtWidgets.QDialog):

    def __init__(self, parent=None):
        super(FamilyChooserDialog, self).__init__(parent)

        self.widget = FamilyChooserWidget(self)
        self.build_ui()
        self.setup()

    def build_ui(self):
        self.vbox_lo = QtWidgets.QVBoxLayout(self)
        self.bt_ok = QtWidgets.QPushButton(self.tr('Ok'), self)
        self.bt_cancel = QtWidgets.QPushButton(self.tr('Cancel'), self)

        self.header = QtWidgets.QLabel(self)

        # bottom bar
        bottom_bar = QtWidgets.QFrame(self)
        hbox = QtWidgets.QHBoxLayout(bottom_bar)
        hbox.addStretch()
        hbox.addWidget(self.bt_ok)
        hbox.addWidget(self.bt_cancel)

        fr_central = QtWidgets.QFrame(self)
        vb = QtWidgets.QVBoxLayout(fr_central)
        vb.setContentsMargins(40, 20, 40, 20)
        vb.addWidget(self.widget)

        self.vbox_lo.addWidget(self.header)

# Path: l5r/util/log.py
# def log_setup(base_path, base_name):


# Path: l5r/widgets/familychooser.py
from pydoc import pager
from PyQt5 import QtCore, QtGui, QtWidgets
from asq.initiators import query
from asq.selectors import a_
from l5r.util import log
import l5r.api as api
import l5r.api.data
import l5r.api.data.families
import l5r.api.data.clans
    import sys


class FamilyChooserDialog(QtWidgets.QDialog):

    def __init__(self, parent=None):
        super(FamilyChooserDialog, self).__init__(parent)

        self.widget = FamilyChooserWidget(self)
        self.build_ui()
        self.setup()

    def build_ui(self):
        self.vbox_lo = QtWidgets.QVBoxLayout(self)
        self.bt_ok = QtWidgets.QPushButton(self.tr('Ok'), self)
        self.bt_cancel = QtWidgets.QPushButton(self.tr('Cancel'), self)

        self.header = QtWidgets.QLabel(self)

        # bottom bar
        bottom_bar = QtWidgets.QFrame(self)
        hbox = QtWidgets.QHBoxLayout(bottom_bar)
        hbox.addStretch()
        hbox.addWidget(self.bt_ok)
        hbox.addWidget(self.bt_cancel)

        fr_central = QtWidgets.QFrame(self)
        vb = QtWidgets.QVBoxLayout(fr_central)
        vb.setContentsMargins(40, 20, 40, 20)
        vb.addWidget(self.widget)

        self.vbox_lo.addWidget(self.header)

        self.vbox_lo.addWidget(fr_central)