sethmlarson / virtualbox-python

Complete implementation of VirtualBox's COM API with a Pythonic interface.
https://pypi.org/project/virtualbox
Apache License 2.0
354 stars 75 forks source link

get_screen_resolution - ValueError: need more than 3 values to unpack #6

Closed andosins closed 10 years ago

andosins commented 10 years ago

The code:

h, w, d = session.console.display.get_screen_resolution(0)

returns this error:

Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/virtualbox/library.py", line 18126, in get_screen_resolution in_p=[screen_id]) ValueError: need more than 3 values to unpack

mjdorma commented 10 years ago

Give the following a go:

h, w, d, x, y = session.console.display.get_screen_resolution(0)

I've made updates to the readme.rst to reflect this change in interface.

Thanks!