Esempio n. 1
0
    def getAllItems(self) : 
        count = self.ui.preset_listWidget.count()
        itemWidgets = []
        items1 = []
        items2 = []
        items3 = []
        items4 = []

        for i in range(count) : 
            item = self.ui.preset_listWidget.item(i)

            customWidget = self.ui.preset_listWidget.itemWidget(item)
            text1 = customWidget.text1()
            text2 = customWidget.text2()
            text3 = customWidget.text3()
            text4 = customWidget.text4()

            items1.append(text1)
            items2.append(text2)
            items3.append(text3)
            items4.append(text4)
            itemWidgets.append(customWidget)


        return [items1, items2, items3, items4, itemWidgets]
Esempio n. 2
-7
    def getSelectedItem(self) : 
        item = self.ui.preset_listWidget.currentItem()

        if item : 
            customWidget = self.ui.preset_listWidget.itemWidget(item)
            text1 = customWidget.text1()
            text2 = customWidget.text2()
            text3 = customWidget.text3()
            text4 = customWidget.text4()

            return [text1, text2, text3, text4]