|
13 | 13 |
|
14 | 14 | from arg_types import network_port, positive_int, non_empty_string |
15 | 15 |
|
16 | | -EMOJIS = [ |
17 | | - ':baby_chick:', |
18 | | - ':blowfish:', |
19 | | - ':cow:', |
20 | | - ':dog:', |
21 | | - ':elephant:', |
22 | | - ':gorilla:', |
23 | | - ':monkey:', |
24 | | - ':see_no_evil:', |
25 | | - ':hear_no_evil:', |
26 | | - ':speak_no_evil:', |
27 | | - ':ox:', |
28 | | - ':pig:', |
29 | | - ':ram:', |
30 | | - ':rat:', |
31 | | - ':tiger:', |
32 | | - ':tropical_fish:', |
33 | | -] |
34 | | - |
35 | 16 |
|
36 | 17 | def parse_args() -> argparse.Namespace: |
37 | 18 | parser = argparse.ArgumentParser() |
@@ -80,22 +61,23 @@ def main(): |
80 | 61 |
|
81 | 62 | def hello_world(console: Console): |
82 | 63 | tree_of_live = Tree("thinking") |
| 64 | + emojis = [':baby_chick:', ':blowfish:', ':dog:', ':elephant:', ':gorilla:', ':pig:', ] |
83 | 65 | with Live(tree_of_live, refresh_per_second=4) as display: |
84 | 66 | for _ in range(2, 5): |
85 | | - node = tree_of_live.add(random.choice(EMOJIS) + ' ' + uuid.uuid4().hex) |
| 67 | + node = tree_of_live.add(random.choice(emojis) + ' ' + uuid.uuid4().hex) |
86 | 68 | for i1 in range(randrange(1, 2)): |
87 | | - sub_node = node.add(random.choice(EMOJIS) + ' ' + uuid.uuid4().hex) |
| 69 | + sub_node = node.add(random.choice(emojis) + ' ' + uuid.uuid4().hex) |
88 | 70 | for j in range(randrange(2, 4)): |
89 | | - sub_sub_node = sub_node.add(random.choice(EMOJIS) + ' ' + uuid.uuid4().hex) |
| 71 | + sub_sub_node = sub_node.add(random.choice(emojis) + ' ' + uuid.uuid4().hex) |
90 | 72 | for k in range(randrange(2, 4)): |
91 | | - sub_sub_node.add(random.choice(EMOJIS) + ' ' + uuid.uuid4().hex) |
| 73 | + sub_sub_node.add(random.choice(emojis) + ' ' + uuid.uuid4().hex) |
92 | 74 | time.sleep(0.5) |
93 | 75 | display.update(tree_of_live) |
94 | 76 | for _ in track(range(42), description="asking..."): |
95 | 77 | time.sleep(0.1) |
96 | | - console.print(''.join([random.choice(EMOJIS) for _ in EMOJIS])) |
| 78 | + console.print(''.join([random.choice(emojis) for _ in emojis])) |
97 | 79 | import this |
98 | | - console.print(''.join([random.choice(EMOJIS) for _ in EMOJIS])) |
| 80 | + console.print(''.join([random.choice(emojis) for _ in emojis])) |
99 | 81 | result = 0x17, 0o23 |
100 | 82 | this.i, this.s = result |
101 | 83 | inspect(this.i + this.s) |
|
0 commit comments