I need some help adding some items to a QComboBox
. So I have two comboboxes, and one populates the other depending on the item selected.
My question is
Here's the code:
names = self.classes_names()
self.comboBox.addItems(names)
def classes_names(self):
coconames = CURRENT_DIR + os.sep + 'yolo-coco' + os.sep + 'coco.names'
with open(coconames) as reader:
return reader.readlines()
I hope it will help someone in the future.