[pygtk] color setting?

Tobias Bengtsson tobbe at tobbe.nu
Thu Jul 20 06:50:27 WST 2006


Hi, I'm trying to draw an arc with a gray color using this code:
  color = gtk.gdk.color_parse('gray')
  graygc = win.new_gc(background=color, foreground=color)
  win.draw_arc(graygc, True, self.x+w-5, self.y, 10, h, -90*64, 180*64)

I've printed out the color and checked for correct values, but the arc 
get black.. what am I doing wrong?

regards, Tobias


More information about the pygtk mailing list