~bennabiy/+junk/python-xlib

« back to all changes in this revision

Viewing changes to Xlib/xobject/cursor.py

  • Committer: Package Import Robot
  • Author(s): Andrew Shadura, Ramkumar Ramachandra, Andrew Shadura
  • Date: 2015-08-13 08:14:19 UTC
  • mfrom: (6.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20150813081419-hdefinnghp2iydkx
Tags: 0.14+20091101-3
[ Ramkumar Ramachandra ]
* Remove useless debugging output (Closes: #565996)

[ Andrew Shadura ]
* Switch to 3.0 (quilt) format.
* Rename patches.
* Use debhelper 9 in its short form.
* Use pybuild.
* Bump Standards-Version.
* Don't build or install PostScript documentation and info files.
* Use system-provided texi2html instead of a shipped version
  (Closes: #795057).
* Update debian/copyright (Closes: #795057).
* Don't install Makefile or texi2html with the documentation.
* Set executable bit for examples.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
18
 
19
19
from Xlib.protocol import request
20
 
 
21
 
import resource
 
20
from Xlib.xobject import resource
22
21
 
23
22
class Cursor(resource.Resource):
24
23
    __cursor__ = resource.Resource.__resource__
29
28
                           cursor = self.id)
30
29
        self.display.free_resource_id(self.id)
31
30
 
32
 
    def recolor(self, (fore_red, fore_green, fore_blue),
33
 
                (back_red, back_green, back_blue), onerror = None):
34
 
 
 
31
    def recolor(self, f_rgb, b_rgb, onerror = None):
 
32
        back_red, back_green, back_blue = b_rgb
 
33
        fore_red, fore_green, fore_blue = f_rgb
35
34
        request.RecolorCursor(display = self.display,
36
35
                              onerror = onerror,
37
36
                              cursor = self.id,