[pygtk] Draw Text in Fullscreen

Timo timomlists at gmail.com
Thu Nov 10 01:32:57 WST 2011


Op 09-11-11 11:35, Thomas Güttler schreef:
> Hi,
>
> I want to draw simple static text on a white fullscreen:
>
> {{{
> Heading (bold)
>
> some text which breaks if the end of the screen is
> reached. ....
> }}}
>
> Any hints of to implement this?
Create a window with one or more labels. Then call these:
window.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('white'))
window.fullscreen()
label.set_ellipsize(pango.ELLIPSIZE_END)

Cheers,
Timo

http://developer.gnome.org/pygtk/stable/class-gtkwindow.html#method-gtkwindow--fullscreen
http://faq.pygtk.org/index.py?file=faq10.018.htp&req=show
http://developer.gnome.org/pygtk/stable/class-gtklabel.html#method-gtklabel--set-ellipsize

>
>   Thomas
>



More information about the pygtk mailing list