14 lines
337 B
Python
14 lines
337 B
Python
import logging
|
|
from textual.logging import TextualHandler
|
|
|
|
|
|
logging.basicConfig(
|
|
level="NOTSET",
|
|
handlers=[TextualHandler()],
|
|
)
|
|
|
|
def show_message(app, message_id: int) -> None:
|
|
"""Fetch and display the email message by ID."""
|
|
logging.info("Showing message ID: " + str(message_id))
|
|
app.current_message_id = message_id
|