from PyQt5.QtWidgets import QApplication, QWidget
from PyQt5.uic import loadUi
class m(QWidget):
def __init__(self):
self.app = QApplication([])
super().__init__()
loadUi('form.ui', self)
self.CBsettings.currentIndexChanged.connect(self.change)
self.show()
self.app.exec()
def change(self, index):
print(self.CBsettings.itemText(index))
m()