Fix #1890 - Apply latest patch that was lost (#1891)

This commit is contained in:
Andrea Giammarchi
2023-12-07 10:29:45 +01:00
committed by GitHub
parent c0d45d368b
commit 6a3e2834b6
5 changed files with 53 additions and 34 deletions

View File

@@ -6,27 +6,6 @@
<title>PyTerminal</title>
<link rel="stylesheet" href="../dist/core.css">
<script type="module" src="../dist/core.js"></script>
<style>
.py-editor-box, .mpy-editor-box {
padding: .5rem;
position: relative;
}
.py-editor-run-button, .mpy-editor-run-button {
position: absolute;
right: .5rem;
top: .5rem;
opacity: 0;
transition: opacity .25s;
}
.py-editor-box:hover .py-editor-run-button,
.mpy-editor-box:hover .mpy-editor-run-button,
.py-editor-run-button:focus,
.py-editor-run-button:disabled,
.mpy-editor-run-button:focus,
.mpy-editor-run-button:disabled {
opacity: 1;
}
</style>
</head>
<body>
<script type="py-editor">
@@ -37,6 +16,7 @@
import sys
print(sys.version)
a = 42
print(a)
</script>
<script type="mpy-editor" env="shared">
if not 'a' in globals():