MCPcopy Create free account
hub / github.com/alpha2phi/python-apps / toggle_source_code

Method toggle_source_code

gui-apps/app_kivy.py:99–109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 2

update_sourcecodeMethod · 0.95
startMethod · 0.45

Tested by

no test coverage detected