Example #1
0
    def propertiesClicked(self):

        activeName = self.Portal.get('ActiveGadgetName')

        if activeName != "":
            childType = int(self.Portal.getChild(activeName, "type"))

            launchPropertiesDialog(activeName, childType, self.r)
            self.close()
            return

        self.close()
Example #2
0
	def propertiesClicked(self):
		
		activeName = self.Portal.get('ActiveGadgetName')
		
		
		
		if activeName != "":
			childType = int(self.Portal.getChild(activeName, "type"))
			
			launchPropertiesDialog(activeName, childType, self.r)
			self.close()	
			return
		
		self.close()
Example #3
0
	def properties(self):
		
		selected = self.TWGadgets.currentItem()
		if selected != None:
			# Is this a root (type) item with children?  If not, we may proceed to add the topic
			if selected.childCount() == 0:
				childName = str(selected.text(0))
			else:
				return
		else:
			return
		
		# Gadget type?
		childType = int(self.Portal.getChild(childName, "type"))
		
		launchPropertiesDialog(childName, childType, self.r)