This repository was archived by the owner on Feb 22, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ def type(self, key):
100100 """ Type on the paper """
101101 # Drawing on the image
102102 ImageDraw .Draw (self .txt ).text ((self .head ["x" ], self .head ["y" ]),
103- key .char , font = key .font , fill = 128 )
103+ key .char , font = key .font , fill = key . color )
104104 # Scrolling up
105105
106106 # Shoudln't move paper if it is the first letter of the line
Original file line number Diff line number Diff line change 1717 FloatLayout:
1818 typw: typw
1919 TextPaper:
20- #canvas.after:
21- # Color:
22- # rgba: (0,0,0,0)
23- # Rectangle:
24- # pos: self.pos
25- # size: self.size #self.width, self.height //2 + 125
26- # Color:
27- # rgba: (0,0,0,1)
28- # Rectangle:
29- # pos: self.parent.width, self.parent.height//2
30- # size: self.width, self.height //2 + 125
20+ canvas.after:
21+ Color:
22+ rgba: (.59 , .29 , 0 , 1 )
23+ Rectangle:
24+ size: 720 , 600 # don't hardcoded
25+ pos: 0 , 0
3126 id : typw
3227 source: ' blank.png'
3328 #pos_hint: {'x': 0.2, 'y':.5}
4338 GestureSurface:
4439 size: self .size
4540 pos: self .pos
46- # on_gesture_complete: typw.text += '_b'
41+ on_gesture_complete: print ( self .properties())
4742 Row1:
4843 txt: ' q'
4944 pos_hint: {' x' : .16 , ' y' : self .anim_y}
You can’t perform that action at this time.
0 commit comments