Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Cursors.py
blob: d501b1dd4a1a13fb8ce7a66e08f7ceefa31b41d3 (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
import  pygtk
pygtk.require('2.0')
import gtk
from gtk import gdk

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

		Keyword arguments:
		self -- Cursors.Cursors 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 -- Cursors.Cursors instance

		"""
		return self._cursor