quizzy 0.1.0__py3-none-any.whl → 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- quizzy/app.py +3 -3
- {quizzy-0.1.0.dist-info → quizzy-0.2.0.dist-info}/METADATA +9 -5
- quizzy-0.2.0.dist-info/RECORD +10 -0
- quizzy-0.1.0.dist-info/RECORD +0 -10
- {quizzy-0.1.0.dist-info → quizzy-0.2.0.dist-info}/WHEEL +0 -0
- {quizzy-0.1.0.dist-info → quizzy-0.2.0.dist-info}/entry_points.txt +0 -0
- {quizzy-0.1.0.dist-info → quizzy-0.2.0.dist-info}/licenses/LICENSE +0 -0
quizzy/app.py
CHANGED
@@ -26,10 +26,10 @@ class AnswerScreen(screen.ModalScreen[models.Team | None]):
|
|
26
26
|
self.border_title = f"{category} - {question.value} points"
|
27
27
|
|
28
28
|
def compose(self) -> app.ComposeResult:
|
29
|
-
question_widget = widgets.
|
29
|
+
question_widget = widgets.Markdown(self.question.question, id="question")
|
30
30
|
question_widget.border_title = "Question"
|
31
31
|
|
32
|
-
answer_widget = widgets.
|
32
|
+
answer_widget = widgets.Markdown(self.question.answer, id="answer")
|
33
33
|
answer_widget.border_title = "Answer"
|
34
34
|
|
35
35
|
whoanswered = containers.HorizontalGroup(
|
@@ -77,7 +77,7 @@ class QuestionScreen(screen.ModalScreen[models.Team | None]):
|
|
77
77
|
self.teams = teams
|
78
78
|
|
79
79
|
def compose(self) -> app.ComposeResult:
|
80
|
-
question_widget = widgets.
|
80
|
+
question_widget = widgets.Markdown(self.question.question, id="question")
|
81
81
|
question_widget.border_title = "Question"
|
82
82
|
|
83
83
|
container = containers.Grid(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: quizzy
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.2.0
|
4
4
|
Summary: A Python TUI quiz app
|
5
5
|
Author-email: Jonas Ehrlich <jonas.ehrlich@gmail.com>
|
6
6
|
License-Expression: MIT
|
@@ -17,7 +17,6 @@ A quiz app using [textual](https://textual.textualize.io/).
|
|
17
17
|
|
18
18
|

|
19
19
|
|
20
|
-
|
21
20
|
## Configuration and Questions
|
22
21
|
|
23
22
|
Create a YAML file to define the teams participating, the questions and their answers.
|
@@ -47,16 +46,21 @@ categories:
|
|
47
46
|
|
48
47
|
See [examples/quizzy.yaml](examples/quizzy.yaml) for an example.
|
49
48
|
|
50
|
-
|
51
49
|
## Running it
|
52
50
|
|
53
|
-
Run
|
51
|
+
Run the latest PyPI release using *uvx*:
|
52
|
+
|
53
|
+
```sh
|
54
|
+
uvx quizzy projects/gh/quizzy/examples/quizzy.yaml
|
55
|
+
```
|
56
|
+
|
57
|
+
Run the local version using *uv*:
|
54
58
|
|
55
59
|
``` sh
|
56
60
|
uv run quizzy examples/quizzy.yaml
|
57
61
|
```
|
58
62
|
|
59
|
-
Serve using textual:
|
63
|
+
Serve on a webserver using textual:
|
60
64
|
|
61
65
|
``` sh
|
62
66
|
uv run textual serve "uv run quizzy examples/quizzy.yaml"
|
@@ -0,0 +1,10 @@
|
|
1
|
+
quizzy/__init__.py,sha256=IILIKzO2OO60Rhsh3SqhdKHDf7XI_RLRwzztBGZZmHY,78
|
2
|
+
quizzy/__main__.py,sha256=TxTz5dT__4--aF49xzShPppphmYLCNYKMraPhp6scIc,117
|
3
|
+
quizzy/app.py,sha256=QP4pZsIYXlzvyd_laf-VhlQzy1Lw8rRIc-UDnoi8PLY,7693
|
4
|
+
quizzy/models.py,sha256=JrAc2IvtXByIKNg_lX7uQMK19zwi2WsYcNbttXccbOs,1265
|
5
|
+
quizzy/quizzy.tcss,sha256=ixFfm8pT_JLdL0XZ-4n8u0fs3l9lAHWQa3-q9d4bRRU,1455
|
6
|
+
quizzy-0.2.0.dist-info/METADATA,sha256=GGo2imhK6FbqVeaA83L-i8E-ook8d2rBKN0E6FQWLLg,1590
|
7
|
+
quizzy-0.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
8
|
+
quizzy-0.2.0.dist-info/entry_points.txt,sha256=2RiVMgcS4h7TM59u9dyBQFm53cG6Eyekmb8fqZ5rXHM,48
|
9
|
+
quizzy-0.2.0.dist-info/licenses/LICENSE,sha256=JWN3MACgsucm6y_rlL_2MUzst0-wNh-Wab3XkxtfVzM,1070
|
10
|
+
quizzy-0.2.0.dist-info/RECORD,,
|
quizzy-0.1.0.dist-info/RECORD
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
quizzy/__init__.py,sha256=IILIKzO2OO60Rhsh3SqhdKHDf7XI_RLRwzztBGZZmHY,78
|
2
|
-
quizzy/__main__.py,sha256=TxTz5dT__4--aF49xzShPppphmYLCNYKMraPhp6scIc,117
|
3
|
-
quizzy/app.py,sha256=B9fIHy9L5HILbuDoY4ief0wCcVY8_X9Uqb0ByK_ihQk,7687
|
4
|
-
quizzy/models.py,sha256=JrAc2IvtXByIKNg_lX7uQMK19zwi2WsYcNbttXccbOs,1265
|
5
|
-
quizzy/quizzy.tcss,sha256=ixFfm8pT_JLdL0XZ-4n8u0fs3l9lAHWQa3-q9d4bRRU,1455
|
6
|
-
quizzy-0.1.0.dist-info/METADATA,sha256=l3qoY9aRtg1Cpx-QvLHckMP7LmpjsviO9qg15o0oeT4,1464
|
7
|
-
quizzy-0.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
8
|
-
quizzy-0.1.0.dist-info/entry_points.txt,sha256=2RiVMgcS4h7TM59u9dyBQFm53cG6Eyekmb8fqZ5rXHM,48
|
9
|
-
quizzy-0.1.0.dist-info/licenses/LICENSE,sha256=JWN3MACgsucm6y_rlL_2MUzst0-wNh-Wab3XkxtfVzM,1070
|
10
|
-
quizzy-0.1.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|