Debian Codegraph @

src/fenrirscreenreader/commands/help/next_help_section.py

raw
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3
4 # Fenrir TTY screen reader
5 # By Chrys, Storm Dragon, and contributors.
6
7 from fenrirscreenreader.core.i18n import _
8
9
10 class command:
11 def __init__(self):
12 pass
13
14 def initialize(self, environment):
15 self.env = environment
16
17 def shutdown(self):
18 pass
19
20 def get_description(self):
21 return _("show next help category")
22
23 def run(self):
24 text = self.env["runtime"]["HelpManager"].next_help_section()
25 self.env["runtime"]["OutputManager"].present_text(
26 text, interrupt=True
27 )
28
29 def set_callback(self, callback):
30 pass