Пример #1
0
 def _OnSizeChange_NoBlock(self, newWidth, newHeight):
     Container._OnSizeChange_NoBlock(self, newWidth, newHeight)
     if self.amountLabel is not None:
         textWidth = self.amountLabel.textwidth
         availableTextWidth = newWidth - textWidth - 14
         self.nameLabel.SetRightAlphaFade(fadeEnd=availableTextWidth,
                                          maxFadeWidth=20)
Пример #2
0
 def _OnSizeChange_NoBlock(self, width, height):
     Container._OnSizeChange_NoBlock(self, width, height)
     self.UpdateSizes((width, height))
Пример #3
0
 def _OnSizeChange_NoBlock(self, width, height):
     Container._OnSizeChange_NoBlock(self, width, height)
     self.UpdateSizes((width, height))
 def _OnSizeChange_NoBlock(self, newWidth, newHeight):
     Container._OnSizeChange_NoBlock(self, newWidth, newHeight)
     if self.amountLabel is not None:
         textWidth = self.amountLabel.textwidth
         availableTextWidth = newWidth - textWidth - 14
         self.nameLabel.SetRightAlphaFade(fadeEnd=availableTextWidth, maxFadeWidth=20)