Public bug reported:
When calling gtk.gdk.Window.get_origin(), it returns 3 values instead of
the documented 2-tuple of the x & y origin of the window. I'm not sure
if the 3 values is intended and the documentation is wrong or if this is
truly a bug.
Here is a simple way to reproduce.
1. Open a new window such as gedit.
2. Get the xid (Window id) for the window using a tool such as xwininfo.
3. Start a python shell.
4. Then in the python shell, enter this:
>>> from gi.repository import Gdk, GdkX11
>>> GdkX11.X11Window.foreign_new_for_display(Gdk.Display().get_default(),
>>> xid).get_origin() where xid is the xid obtained in step 2.
You will observe the output has 3 values looking something like this:
(1, 66, 262)
I'm not sure what the first value is, but the second and third represent
the x and y origin of the window.
** Affects: pygtk (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to pygtk in Ubuntu.
https://bugs.launchpad.net/bugs/1273380
Title:
gtk.gdk.Window.get_origin() returns 3 values instead of the documented
2-tuple
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pygtk/+bug/1273380/+subscriptions
--
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs