Esempio n. 1
0
	def getSelectedItems(self, listWidget) : 
		items = eval('self.ui.%s.selectedItems()' % listWidget)
		items1 = []
		items2 = []
		itemWidgets = []

		if items : 
			for eachItem in items : 
				customWidget = eval('self.ui.%s.itemWidget(eachItem)' % listWidget)
				text1 = customWidget.text1()
				text2 = customWidget.text2()

				items1.append(text1)
				items2.append(text2)
				itemWidgets.append(customWidget)

			return [items1, items2, itemWidgets]
Esempio n. 2
0
    def getSelectedItems(self, listWidget):
        items = eval('self.ui.%s.selectedItems()' % listWidget)
        items1 = []
        items2 = []
        itemWidgets = []

        if items:
            for eachItem in items:
                customWidget = eval('self.ui.%s.itemWidget(eachItem)' %
                                    listWidget)
                text1 = customWidget.text1()
                text2 = customWidget.text2()

                items1.append(text1)
                items2.append(text2)
                itemWidgets.append(customWidget)

            return [items1, items2, itemWidgets]
Esempio n. 3
0
    def getAllItems(self, listWidget):
        count = eval('self.ui.%s.count()' % listWidget)
        itemWidgets = []
        items1 = []
        items2 = []

        for i in range(count):
            item = eval('self.ui.%s.item(i)' % listWidget)

            customWidget = eval('self.ui.%s.itemWidget(item)' % listWidget)
            text1 = customWidget.text1()
            text2 = customWidget.text2()

            items1.append(text1)
            items2.append(text2)
            itemWidgets.append(customWidget)

        return [items1, items2, itemWidgets]
Esempio n. 4
0
	def getAllItems(self, listWidget) : 
		count = eval('self.ui.%s.count()' % listWidget)
		itemWidgets = []
		items1 = []
		items2 = []

		for i in range(count) : 
			item = eval('self.ui.%s.item(i)' % listWidget)

			customWidget = eval('self.ui.%s.itemWidget(item)' % listWidget)
			text1 = customWidget.text1()
			text2 = customWidget.text2()

			items1.append(text1)
			items2.append(text2)
			itemWidgets.append(customWidget)


		return [items1, items2, itemWidgets]