2

为什么 webkit2png 不起作用?

from webkit2png import WebkitRenderer, init_qtgui

Traceback (most recent call last):
  File "/home/ubuntu/workspace/screen/test4.py", line 1, in <module>
    from webkit2png import WebkitRenderer, init_qtgui
ImportError: cannot import name init_qtgui

import webkit2png
from pprint import pprint
pprint(dir(webkit2png))

['WebkitRenderer',
 '__all__',
 '__builtins__',
 '__doc__',
 '__file__',
 '__name__',
 '__package__',
 '__path__',
 'webkit2png']

我正在尝试截取页面的屏幕截图。有没有真正有效的图书馆?我正在使用 ubuntu 12.04。

4

0 回答 0