Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pyscript/pyscript
/ toggle
Method
toggle
core/tests/manual/issue-2302/libthree.py:32–36 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
30
self._start_time = -1.0
31
32
def
toggle(self):
33
if
self.sound.isPlaying:
34
self.stop()
35
else
:
36
self.play()
37
38
@property
39
def
running_time(self):
Callers
4
_handleNewLink
Method · 0.80
_createElement
Method · 0.80
on_tap
Function · 0.80
on_key_down
Function · 0.80
Calls
2
stop
Method · 0.95
play
Method · 0.95
Tested by
no test coverage detected