Exemple #1
0
 def SetPasswordChar(self, char):
     SinglelineEditCore.SetPasswordChar(self, char)
     if self.passwordchar:
         self.capsWarning = TooltipGeneric(parent=uicore.layer.hint, idx=0, opacity=0.0)
         self.capsWarning.defaultPointer = uiconst.POINT_LEFT_2
         self.capsLockUpdateThread = AutoTimer(1, self.UpdateCapsState)
     else:
         self.capsLockUpdateThread = None
Exemple #2
0
 def ApplyAttributes(self, attributes):
     SinglelineEditCore.ApplyAttributes(self, attributes)
     self.displayHistory = True
     if self.GetAlign() == uiconst.TOALL:
         self.height = 0
     else:
         self.height = self.default_height
     self.isTypeField = attributes.isTypeField
     self.isCharacterField = attributes.isCharacterField
 def OnDropData(self, dragObj, nodes):
     SinglelineEditCore.OnDropData(self, dragObj, nodes)
     if self.isTypeField:
         self.OnDropType(dragObj, nodes)
     elif self.isLocationField:
         self.OnDropLocation(dragObj, nodes)
     if self.isCharCorpOrAllianceField:
         self.OndDropCharCorpOrAlliance(dragObj, nodes)
     elif self.isCharacterField:
         self.OnDropCharacter(dragObj, nodes)
 def Close(self):
     if self.capsWarning:
         self.capsWarning.Close()
     self.capsLockUpdateThread = None
     SinglelineEditCore.Close(self)
Exemple #5
0
 def OnDropData(self, dragObj, nodes):
     SinglelineEditCore.OnDropData(self, dragObj, nodes)
     if self.isTypeField:
         self.OnDropType(dragObj, nodes)
     if self.isCharacterField:
         self.OnDropCharacter(dragObj, nodes)