예제 #1
0
파일: app.py 프로젝트: myCodeTD/ptAlembic
	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]
예제 #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]
예제 #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]
예제 #4
0
파일: app.py 프로젝트: myCodeTD/ptAlembic
	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]