~bennabiy/+junk/python-xlib

« back to all changes in this revision

Viewing changes to Xlib/xobject/fontable.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
22
 
import cursor
 
20
from Xlib.xobject import resource, cursor
23
21
 
24
22
class Fontable(resource.Resource):
25
23
    __fontable__ = resource.Resource.__resource__
85
83
        self.display.free_resource_id(self.id)
86
84
 
87
85
    def create_glyph_cursor(self, mask, source_char, mask_char,
88
 
                            (fore_red, fore_green, fore_blue),
89
 
                            (back_red, back_green, back_blue)):
 
86
                            f_rgb, b_rgb):
 
87
        fore_red, fore_green, fore_blue = f_rgb
 
88
        back_red, back_green, back_blue = b_rgb
90
89
 
91
90
        cid = self.display.allocate_resource_id()
92
91
        request.CreateGlyphCursor(display = self.display,