only set window size if gui; flake8 ignore rules