You've already forked HeurAMS-legacy
fix: 改进
This commit is contained in:
@@ -28,12 +28,6 @@ class Recognition(BasePuzzleWidget):
|
||||
alia = "Recognition"
|
||||
self.alia = alia
|
||||
|
||||
class RatingChanged(Message):
|
||||
"""评分改变消息"""
|
||||
def __init__(self, rating: int) -> None:
|
||||
self.rating = rating
|
||||
super().__init__()
|
||||
|
||||
def compose(self):
|
||||
cfg: RecognitionConfig = self.atom.registry["orbital"]["puzzles"][self.alia]
|
||||
delim = self.atom.registry['nucleon'].metadata["formation"]["delimiter"]
|
||||
@@ -85,4 +79,4 @@ class Recognition(BasePuzzleWidget):
|
||||
|
||||
def on_button_pressed(self, event: Button.Pressed) -> None:
|
||||
if event.button.id == "ok":
|
||||
self.post_message(self.RatingChanged(5))
|
||||
self.screen.rating = 5 # type: ignore
|
||||
Reference in New Issue
Block a user