Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Cursores.py
blob: 82fef79153554c3b900cf3a81551a5e855e8a271 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# -*- coding: utf-8 -*-
import  pygtk
pygtk.require('2.0')
import gtk
from gtk import gdk

class Cursores:
	def __init__(self, archive):
		"""Initialize Cursores object.

		Keyword arguments:
		self -- Cursores.Cursores instance
		archive -- 

		"""		
		color = gtk.gdk.Color()
		pix = gtk.gdk.pixbuf_new_from_file("./images/" + archive)		
		self.cursor_ = gtk.gdk.Cursor(gtk.gdk.display_get_default() , pix, 6, 21)
	
	def cursor(self):
		"""Return self.cursor_.

		Keyword arguments:
		self -- Cursores.Cursores instance

		"""
		return self.cursor_