diff options
Diffstat (limited to 'Cursores.py')
-rw-r--r-- | Cursores.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Cursores.py b/Cursores.py new file mode 100644 index 0000000..82fef79 --- /dev/null +++ b/Cursores.py @@ -0,0 +1,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_
+
+ |