pi_memorizer module¶
- class Pimemorizer¶
Bases:
object
A tab for testing and improving memory of the digits of π (Pi).
This component provides: - A text box to display the digits entered so far. - A numeric keypad to input digits. - A scoring system to track the current and high scores.
- label¶
The label for the tab, set to “𝝅 Pi memorizer”.
- Type:
str
- layout()¶
Generates the layout for the Pi memorizer tab.
- Return type:
Div
- callbacks()¶
Registers the Dash callbacks for handling user interactions.
- Return type:
None
- callbacks()¶
Register Dash callbacks for the Pi memorizer tab.
- Return type:
None
Notes
The update_input callback handles the interaction between the numeric keypad and the current sequence, score, and high score.
- layout()¶
Generate the layout for the Pi memorizer tab.
- Returns:
- A Div element containing:
A text area to display the user’s current input sequence.
A numeric keypad for entering digits.
Score and high score displays to track progress.
- Return type:
html.Div