(self)
| 97 | return fd.read() |
| 98 | |
| 99 | def toggle_source_code(self): |
| 100 | self.show_sourcecode = not self.show_sourcecode |
| 101 | if self.show_sourcecode: |
| 102 | height = self.root.height * .3 |
| 103 | else: |
| 104 | height = 0 |
| 105 | |
| 106 | Animation(height=height, d=.3, t='out_quart').start( |
| 107 | self.root.ids.sv) |
| 108 | |
| 109 | self.update_sourcecode() |
| 110 | |
| 111 | def update_sourcecode(self): |
| 112 | if not self.show_sourcecode: |
nothing calls this directly
no test coverage detected