def create_layout(self, settings, cols=3):
        glayout = QtGui.QGridLayout()
        glayout.setContentsMargins(10, 15, 10, 5)
        glayout.setAlignment(QtCore.Qt.AlignTop)
        glayout.setSpacing(10)
        glayout.setHorizontalSpacing(20)
        col = 0
        row = 0

        for setting_name in settings:
            setting = self.get_setting(setting_name)
            if cols*2 >= col:
                row += 1
                col = 0
            display_name = setting.display_name+':'
            if setting.required:
                display_name += '*'
            setting_label = QtGui.QLabel(display_name)
            setting_label.setToolTip(setting.description)
            setting_label.setStatusTip(setting.description)
            glayout.addWidget(setting_label, row, col)
            glayout.addLayout(self.create_setting(setting_name),
                              row, col+1)
            col += 2

        return glayout
dataset/ETHPy150Open jyapayne/Web2Executable/main.py/MainWindow.create_layout/swapped operands of `>=`