Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Cursors.py
diff options
context:
space:
mode:
Diffstat (limited to 'Cursors.py')
-rw-r--r--Cursors.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/Cursors.py b/Cursors.py
new file mode 100644
index 0000000..d501b1d
--- /dev/null
+++ b/Cursors.py
@@ -0,0 +1,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
+
+