offerInfoTooltip.py (1042B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\packages\contextualOffers\client\UI\offerInfoTooltip.py 2 from carbonui import uiconst 3 from eve.client.script.ui.tooltips.tooltipsWrappers import TooltipBaseWrapper 4 from eve.client.script.ui.control import tooltips 5 6 class OfferInfoTooltip(TooltipBaseWrapper): 7 8 def __init__(self, header, description, wrapWidth): 9 super(OfferInfoTooltip, self).__init__() 10 self.header = header 11 self.description = description 12 self.wrapWidth = wrapWidth 13 14 def CreateTooltip(self, parent, owner, idx): 15 self.tooltipPanel = tooltips.TooltipPanel(parent=parent, owner=owner, idx=idx) 16 self.tooltipPanel.state = uiconst.UI_NORMAL 17 self.tooltipPanel.LoadGeneric1ColumnTemplate() 18 self.tooltipPanel.AddLabelLarge(text=self.header, bold=True, wrapWidth=self.wrapWidth, align=uiconst.CENTERTOP, padTop=4, padBottom=10) 19 self.tooltipPanel.AddLabelMedium(text=self.description, padBottom=15) 20 return self.tooltipPanel