3 """Defines :class:`GUI` providing a wxWindows interface to Hooke.
\r
6 from ..command import CommandExit, Exit, Command, Argument, StoreValue
\r
7 from ..interaction import Request, BooleanRequest, ReloadUserInterfaceConfig
\r
8 from ..ui import UserInterface, CommandMessage
\r
9 from ..util.encoding import get_input_encoding, get_output_encoding
\r
12 class GUI (UserInterface):
\r
13 """wxWindows graphical user interface.
\r
16 super(GUI, self).__init__(name='gui')
\r
18 def default_settings(self):
\r
19 """Return a list of :class:`hooke.config.Setting`\s for any
\r
20 configurable UI settings.
\r
22 The suggested section setting is::
\r
24 Setting(section=self.setting_section, help=self.__doc__)
\r
28 def reload_config(self):
\r
31 def run(self, commands, ui_to_command_queue, command_to_ui_queue):
\r
33 cmd = self._cmd(commands, ui_to_command_queue, command_to_ui_queue)
\r
34 cmd.cmdloop(self._splash_text())
\r
36 def run_lines(self, commands, ui_to_command_queue, command_to_ui_queue,
\r
38 raise NotImplementedError(
\r
39 'Use the command line interface for run_lines()')
\r