Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> import TextField
- >>> tf = TextField('None', False)
- Traceback (most recent call last):
- File "<pyshell#1>", line 1, in <module>
- tf = TextField('None', False)
- TypeError: 'module' object is not callable
- >>>
- class TextField:
- TextFieldBorderColor = '#0019fc'
- TextFieldBGColor = '#000000'
- TextFieldTextColor = '#ffffff'
- ShiftedDigits = {
- '1':'!',
- '2':'@',
- '3':'#',
- '4':'$',
- '5':'%',
- '6':'^',
- '7':'&',
- '8':'*',
- '9':'(',
- '0':')'
- }
- def __init__(self, command, CanBeEmpty): # Ex. textField = TextField('Execute()', True)
- self.CmdOnEnter = command
- self.turtle = Turtle()
- self.CanBeEmpty = CanBeEmpty
- self.turtle.speed('fastest')
- self.inp = []
- self.FullOutput = ""
- self.TextSeparation = 7
- self.s = self.TextSeparation
- self.key_shiftL = False
- ......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement