def __init__(self):
        QDialog.__init__(self, appdata.topwindow, Qt.WindowSystemMenuHint | Qt.WindowTitleHint)
        self.setWindowTitle(self.vis_label)

        layout = QVBoxLayout(self)
        box = QGroupBox(tm.main.tests_field, self)

        self.tests_list = QListWidget(box)
        boxlayout = QHBoxLayout(box)
        boxlayout.addWidget(self.tests_list)
        layout.addWidget(box)

        for n in os.listdir(self.tests_dir):
            if n.startswith(".") or not n.endswith('.py'):
                continue

            sp = os.path.splitext(n)
            item = QListWidgetItem(sp[0], self.tests_list)
            item.setCheckState(Qt.Unchecked)