Setting widget background during widget creation?



Hi all!

Is there an easy way to set a widget's background during widget creation, ie before the widget is realized?

From what I understand the background can be changed with
    $widget->get_style->set_background($win, $state)
but this requires $win which is not yet available during widget creation.

Any hints?

Regards,
Martin



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]