Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. >>> import TextField
  2. >>> tf = TextField('None', False)
  3. Traceback (most recent call last):
  4. File "<pyshell#1>", line 1, in <module>
  5. tf = TextField('None', False)
  6. TypeError: 'module' object is not callable
  7. >>>
  8.  
  9. class TextField:
  10. TextFieldBorderColor = '#0019fc'
  11. TextFieldBGColor = '#000000'
  12. TextFieldTextColor = '#ffffff'
  13.  
  14. ShiftedDigits = {
  15. '1':'!',
  16. '2':'@',
  17. '3':'#',
  18. '4':'$',
  19. '5':'%',
  20. '6':'^',
  21. '7':'&',
  22. '8':'*',
  23. '9':'(',
  24. '0':')'
  25. }
  26.  
  27. def __init__(self, command, CanBeEmpty): # Ex. textField = TextField('Execute()', True)
  28. self.CmdOnEnter = command
  29. self.turtle = Turtle()
  30. self.CanBeEmpty = CanBeEmpty
  31. self.turtle.speed('fastest')
  32. self.inp = []
  33. self.FullOutput = ""
  34. self.TextSeparation = 7
  35. self.s = self.TextSeparation
  36. self.key_shiftL = False
  37.  
  38. ......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement