0

PyGUI: I'm defining a text field to display text from an input source in the usual way:

win.status_field = TextField(position = (550, 120), 
    width = 200, text = create_processing_text(),
    multiline = True, lines = 30)

This works fine, but when there is too much text I'd like to be able to scroll around or at least word wrap, but I do not see how that is exactly done from interrogating the docs.

Is it just that PyGUI isn't mature enough to do that, and it's time to graduate into PyQT or some other framework? I hate to think of it that way but I don't see any option to accomplish this simple task.

Is there some way to do this which I am overlooking?

ProfVersaggi
  • 886
  • 13
  • 18
  • You will have to wrap it manually. There is [ScrollableView](http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/version/Doc/ScrollableView.html) so maybe you could scroll `TextField`. – furas Jan 26 '16 at 20:54
  • There is [TextEditor](http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/version/Doc/TextEditor.html) with wrapping and scrolling. Maybe you could use it (with some modifications) – furas Jan 26 '16 at 20:57
  • I tried that as a suitable alternative and was greeted with the following error: ERROR: Traceback (most recent call last): File "C:\Anaconda\lib\site-packages\GUI\WinUtils.py", line 89, in OnCommand self._win_menu_command(id) File "C:\Anaconda\lib\site-packages\GUI\WinUtils.py", line 106, in _win_menu_command raise InternalError("_win_menu_command called on non-window: %r" % self) InternalError: _win_menu_command called on non-window: – ProfVersaggi Jan 26 '16 at 21:01
  • Here was the code: CODE: view = TextEditor(width = 200, height = 200, scrolling = 'hv', anchor = 'ltrb') – ProfVersaggi Jan 26 '16 at 21:02

0 Answers0