> For the complete documentation index, see [llms.txt](https://felienne.gitbook.io/codasium/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://felienne.gitbook.io/codasium/module-4.1-tkinter/les-7/les-7b.md).

# Les 7b

**1) Tonen**

Als je vorige les nog niet aan je tonen veld hebt gewerkt, is het daar nu tijd voor! Volg deze stappen:

1. Maak een functie `tonen().`
2. Koppel die functie aan de tonen knop.
3. Maak het hele veld weer leeg met de functie die je daarvoor hebt gemaakt.
4. Voeg een label toe voor je statistieken, laat die in beeld komen en zet er wat leuks in. Je kan beginnen met bijv "Hier zijn jouw statistieken!"

**2) Statistieken voor tonen**

Nu het label voor tonen goed in beeld komt, mag jij zelf kiezen welke statistieken je gaat tonen. Hier zijn een aantal ideeën die je zou kunnen laten zien:

* Hoeveel woorden er al geselecteerd zijn
* Hoeveel woorden er *nog niet* geselecteerd zijn
* Hoeveel woorden al goed beantwoord zijn
* Hoeveel woorden er fout beantwoord zijn tot nu toe
* Hoeveel zinnen er al zijn ingevoerd

**3) Sla ook een datum op bij ieder antwoord (extra)**

We kunnen het tonen-venster *nog* uitgebreider maken. Dat doen we door ook de datum van vandaag op te slaan als iemand een antwoord invoert. Daarmee kan je nog veel meer statistieken maken zoals:

* Aantal antwoorden goed vandaag, deze week, deze maand
* Aantal antwoorden fout vandaag, deze week, deze maand
* Welk woord het allerlangst geleden fout beantwoord is&#x20;

Volg deze stappen om de datum in te voeren:

1. Zet boven aan je code `import time`
2. Voeg nu bij het antwoorden de code `datum = date.today()` in
3. Sla de variabele ook op in je csv file door de rij aan te passen
4. Sla de variabele ook op in je csv file door de headers aan te passen


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://felienne.gitbook.io/codasium/module-4.1-tkinter/les-7/les-7b.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
