Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting window size? #2

Open
jacobthetechy opened this issue Mar 11, 2017 · 3 comments
Open

Setting window size? #2

jacobthetechy opened this issue Mar 11, 2017 · 3 comments

Comments

@jacobthetechy
Copy link

How would you go about setting the size of the window when you start the application?

@tarocco
Copy link
Collaborator

tarocco commented May 17, 2017

Try extending the WebUI class and adding
self.view.rezize(window_width, window_height)
to its __init__ method for a given window_width and window_height

@pranaymodukuru
Copy link

How to make the window size fixed?

@PoetCoderJun
Copy link

This is my solution:

class BigWebUI(WebUI):
    def __init__(self, app, url="127.0.0.1", port=5000, debug=False, using_win32=False):
        super().__init__(app, url, port, debug, using_win32)
        self.view.resize(1200, 800)

ui = BigWebUI(app, debug=True)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants