【问题标题】:PyWebkitGTK loads a website fully vertical into window and will not resize inwardPyWebkitGTK 将网站完全垂直加载到窗口中,并且不会向内调整大小
【发布时间】:2014-07-14 04:46:26
【问题描述】:

当我使用 webkit webview 打开一个站点时,整个窗口会调整大小以适应不允许滚动条的页面。窗口的高度超过了我的屏幕高度。另外,当 webview 在窗口中时,我可以向外调整窗口大小,但不能向内调整大小。如果我这样做,webview 根本不会显示在 VBox 中:MyVBox.pack_start(MyWebview, True, True, 0)

【问题讨论】:

    标签: python webkit gtk pygtk webkitgtk


    【解决方案1】:

    您必须将 Gtk.WebKitView 放在 Gtk.ScrolledWindow 中。因为它实现了 Gtk.Scrollable,所以你不需要使用 Gtk.Viewport。并将窗口放在您的 Gtk.Box 中

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-17
      • 2013-07-10
      • 2011-01-09
      • 1970-01-01
      • 2019-06-26
      相关资源
      最近更新 更多