更新谜题生成器

This commit is contained in:
2025-08-05 19:40:36 +08:00
parent 961f0ba785
commit 44f75bca90
2 changed files with 77 additions and 1 deletions

View File

@@ -43,6 +43,7 @@ class Finished(Composition):
def compose(self):
yield Label("本次记忆进程结束", id=self.regid("msg"))
#yield Button("示例按钮", id="testbtn")
class Placeholder(Composition):
def __init__(self, screen: Screen):
self.screen = screen
@@ -147,6 +148,12 @@ class FillBlank(Composition):
if event.button.id == "ok":
return 1
class DrawCard(Composition):
def __init__(self, screen: Screen, reactor, atom: Tuple[pt.Electron, pt.Nucleon, Dict] = pt.Atom.placeholder()):
super().__init__(screen, reactor, atom)
def compose(self):
def handler(self, event, type_):
registry = {
"sample": Composition,