This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="en-us"> | |
<body> | |
<script src="simple_event_loop.js" type="application/javascript"></script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="en-us"> | |
<body> | |
<script src="simple_event_loop.js" type="application/javascript"></script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MemoryWidgetNamespace(BaseNamespace, BroadcastMixin): | |
switch = False | |
def recv_disconnect(self): | |
self.switch = False | |
self.disconnect() | |
def on_send_data(self): | |
self.spawn(self.send_meminfo_data) | |
self.switch = True |