PyWebIO
PyWebIO copied to clipboard
output_max_width not implemented in set_env
Documentation for version 1.3.* describes set_env function including "output_max_width" parameter. But setting this parameter leads to assertion violation:
assert all(k in ('title', 'output_animation', 'auto_scroll_bottom', 'http_pull_interval', 'input_panel_min_height', 'input_panel_init_height', 'input_panel_fixed', 'input_auto_focus') for k in env_info.keys())
okay, this feature seems to be in development branch...
okay , I have a version supporting "output_max_width" And I am trying to put a relativly wide table on screen, and even with output_max_width=90%. or 1080px gives no sense - table is presented really narrow with scroll bar. I also tried a layouts with width= set, and it did worked, but center alignment of table is ruined then.
Try add pywebio.session.run_js("""$('head').append()""") before you put_table.