Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflavio <fdanesse@gmail.com>2012-05-25 00:59:45 (GMT)
committer flavio <fdanesse@gmail.com>2012-05-25 00:59:45 (GMT)
commit6c3cc457990db2bbd9d63cec88e43e8f5acca3b3 (patch)
treeb1a461c7275554ecce1b9c0d6ad48de4dcc4af82
parent521786d250eaf4862319186a8815f36788d3a0d0 (diff)
cairo base
-rw-r--r--CaminoAlaPlata.py2
-rw-r--r--Docs/colon_3.jpgbin38070 -> 0 bytes
-rw-r--r--Iconos/fondo.pngbin0 -> 340966 bytes
-rw-r--r--Widgets.py20
4 files changed, 19 insertions, 3 deletions
diff --git a/CaminoAlaPlata.py b/CaminoAlaPlata.py
index b4c072e..93122bc 100644
--- a/CaminoAlaPlata.py
+++ b/CaminoAlaPlata.py
@@ -31,7 +31,7 @@ class CaminoAlaPlata(Gtk.Window):
Gtk.Window.__init__(self)
self.set_title("Camino a la Plata")
self.set_icon_from_file(os.path.join(G.ICONOS, "caminoalaplata-ico.png"))
- self.modify_bg(0, G.NEGRO)
+ #self.modify_bg(0, G.NEGRO)
self.set_size_request(G.WIDTH,G.HEIGHT)
self.set_border_width(2)
#self.set_position(Gtk.WIN_POS_CENTER)
diff --git a/Docs/colon_3.jpg b/Docs/colon_3.jpg
deleted file mode 100644
index d60181d..0000000
--- a/Docs/colon_3.jpg
+++ /dev/null
Binary files differ
diff --git a/Iconos/fondo.png b/Iconos/fondo.png
new file mode 100644
index 0000000..927a66c
--- /dev/null
+++ b/Iconos/fondo.png
Binary files differ
diff --git a/Widgets.py b/Widgets.py
index 3723a92..0ff3534 100644
--- a/Widgets.py
+++ b/Widgets.py
@@ -6,6 +6,7 @@
# CeibalJAM! - Uruguay
import os
+import cairo
from gi.repository import Gtk, Gdk, GObject, GdkPixbuf
import Globals as G
@@ -82,7 +83,7 @@ class TablaPeriodica(Gtk.EventBox):
def __init__(self):
Gtk.EventBox.__init__(self)
self.set_visible_window(True)
- self.modify_bg(0, G.FONDO3)
+ #self.modify_bg(0, G.FONDO3)
self.tabla = None
self.filasdeelementos = None
self.set_layout()
@@ -161,7 +162,22 @@ class Tabla(Gtk.Table):
Gtk.Table.__init__(self, rows = 10, columns = 19, homogeneous = True)
self.set_row_spacing(7, 5)
self.show_all()
-
+
+ self.connect("draw", self.re_paint)
+
+ def re_paint(self, widget, context):
+ rect = widget.get_allocation()
+ x, y = (rect.x, rect.y)
+ w, h = (rect.width, rect.height)
+
+ linear = cairo.LinearGradient(x,y,w,h)
+ linear.add_color_stop_rgba(0.00, 1, 1, 1, 1.0)
+ linear.add_color_stop_rgba(0.25, 0, 1, 0, 0.5)
+ linear.add_color_stop_rgba(1, 0, 0, 0, 1)
+ context.rectangle(x, y, w, h)
+ context.set_source(linear)
+ context.fill()
+
class Toolbar1(Gtk.Toolbar):
__gsignals__ = {"clicked":(GObject.SIGNAL_RUN_FIRST, GObject.TYPE_NONE, (GObject.TYPE_STRING, ))}
def __init__(self):