diff options
author | Manusheel <manusheel@localhost.localdomain> | 2007-07-18 20:04:08 (GMT) |
---|---|---|
committer | Manusheel <manusheel@localhost.localdomain> | 2007-07-18 20:04:08 (GMT) |
commit | 9c0b7121410f4d013d2cc67e5b7490c593abdb74 (patch) | |
tree | afea4805a043a93aed56d7999bdf93a16b9c2553 /Cursores.py | |
parent | 56264eb6a6e1ddef6148b78de6b52afd9e1bb745 (diff) |
New SVG Icon, name of project changed to paint and bugs fixed
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_
+
+ |