Python - Set Spynner window to specific size

280 Views Asked by At

Using in python, I'm looking for the correct approach to setting the window size to a spynner] Webview? I've looked through theQtDocumentation and there does seem to be a way have a fixed size, but can't figure out how it implements in toPython`. Any help is appreciated.

http://doc.qt.io/qt-4.8/qwidget.html#setFixedSize

1

There are 1 best solutions below

2
On

Try doing this :

browser = spynner.Browser()
browser.debug_level = spynner.DEBUG
browser.create_webview()
browser.show()
# now maximize the webview
browser.webview.showMaximized()

See How can I set GUI size of spynner python module?