Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
mainwindow_controller.py 749 B
from controllers.base_controller import BaseController
from windows import mainwindow
from PyQt5 import QtWidgets as Qt


class Mainwindow(Qt.QMainWindow, mainwindow.Ui_MainWindow, BaseController):
    def __init__(self, db, parent=None):
        super(Mainwindow, self).__init__(parent)
        BaseController.__init__(self, db)
        self.setupUi(self)
        print(self.db.get_groups())
        for group in self.db.get_groups():
            self.listGroups.addItem(group.name)
        self.listGroups.currentItemChanged.connect(self.show_people)
        #self.btnBrowse.clicked.connect(self.browse_folder)
        #self.list1.currentItemChanged.connect(self.show_content)

    def show_people(self, current):
        self.listPeople.clear()