Python将Spynner窗口设置为特定大小

2024-03-29 09:10:59 发布

您现在位置:Python中文网/ 问答频道 /正文

在python中使用,我在寻找将窗口大小设置为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`的正确方法。感谢任何帮助。在

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


Tags: andtohavevebeqtwaythere
1条回答
网友
1楼 · 发布于 2024-03-29 09:10:59

尝试这样做:

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

How can I set GUI size of spynner python module?

相关问题 更多 >