Re: Splash screen border
- From: Tim Evans <t evans aranz com>
- To: gtk-app-devel-list gnome org
- Subject: Re: Splash screen border
- Date: Fri, 26 Sep 2003 09:21:59 +1200
Laurent Houdusse wrote:
Hi!
I'm a newbie with GTK
So i try to create a splashscreen white background with a thin border black
(1 pixel)
It's Ok for the background but i don't know how to do for the thin
border????
Create the window with black bacgorund and do
gtk_container_set_border_width(window, 1). Then create a GtkEventBox
with a white backround and add it to the window. Put everything else
inside the event box.
The Python code to do this is:
e = gtk.EventBox()
e.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('white'))
e.add(gtk.Label('Splash Screen'))
e.set_size_request(400,300)
w = gtk.Window()
w.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('black'))
w.add(e)
w.set_decorated(False)
w.set_border_width(1)
w.show_all()
w.present()
--
Tim Evans
Applied Research Associates NZ
http://www.aranz.com/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]