Esempio n. 1
0
 def view_help(self, helpctx):
     signals.push_view_state.send(
         self,
         window = window.Window(
             self,
             help.HelpView(helpctx),
             None,
             statusbar.StatusBar(self, help.footer),
             None
         )
     )
Esempio n. 2
0
 def test_helptext(self):
     h = help.HelpView(None)
     assert h.helptext()
Esempio n. 3
0
 def test_keypress(self):
     h = help.HelpView([1, 2, 3])
     assert not h.keypress((0, 0), "q")
     assert not h.keypress((0, 0), "?")
     assert h.keypress((0, 0), "o") == "o"