panelTraits.py (891B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\shared\info\panels\panelTraits.py 2 from carbonui.control.scrollContainer import ScrollContainer 3 from eve.client.script.ui.shared.traits import HasTraits, TraitsContainer 4 5 class PanelTraits(ScrollContainer): 6 default_name = 'PanelTraits' 7 default_padLeft = 4 8 default_padTop = 4 9 default_padRight = 4 10 default_padBottom = 4 11 12 def ApplyAttributes(self, attributes): 13 ScrollContainer.ApplyAttributes(self, attributes) 14 self.initialized = False 15 self.typeID = attributes.typeID 16 17 def Load(self): 18 if self.initialized: 19 return 20 self.initialized = True 21 TraitsContainer(parent=self, typeID=self.typeID, padding=7, traitAttributeIcons=True) 22 23 @classmethod 24 def TraitsVisible(cls, typeID): 25 return HasTraits(typeID)