Package kiwi :: Package ui :: Module gadgets
[frames | no frames]

Module kiwi.ui.gadgets

Graphical utilities: color management and eyecandy
Classes
FadeOut I am a helper class to draw the fading effect of the background Call my methods start() and stop() to control the fading.

Function Summary
  gdk_color_to_string(color)
Convert a color to a #AABBCC string
  get_background(widget, state)
Return the background color of the widget as a string
  get_foreground(widget, state)
Return the foreground color of the widget as a string
  quit_if_last(*args)
  set_background(widget, color, state)
Set the background color of a widget:
  set_foreground(widget, color, state)
Set the foreground color of a widget:

Function Details

gdk_color_to_string(color)

Convert a color to a #AABBCC string

get_background(widget, state=<Fake gtk.STATE_NORMAL>)

Return the background color of the widget as a string

get_foreground(widget, state=<Fake gtk.STATE_NORMAL>)

Return the foreground color of the widget as a string

set_background(widget, color, state=<Fake gtk.STATE_NORMAL>)

Set the background color of a widget:
  • widget: the widget we are changing the color
  • color: a hexadecimal code or a well known color name
  • state: the state we are afecting, see gtk.STATE_*

set_foreground(widget, color, state=<Fake gtk.STATE_NORMAL>)

Set the foreground color of a widget:
  • widget: the widget we are changing the color
  • color: a hexadecimal code or a well known color name
  • state: the state we are afecting, see gtk.STATE_*

Generated by Epydoc 2.1 on Fri Sep 15 11:53:23 2006 http://epydoc.sf.net