Re: gtk.HTML class nonexistent [was: Re: [pygtk] Computing optimum size of gtkhtml2.View]
- From: Sven Neumann <sven gimp org>
- To: Luke Kenneth Casson Leighton <lkcl lkcl net>
- Cc: gtk-devel-list gnome org
- Subject: Re: gtk.HTML class nonexistent [was: Re: [pygtk] Computing optimum size of gtkhtml2.View]
- Date: Fri, 15 Aug 2008 23:53:45 +0200
Hi,
On Fri, 2008-08-15 at 19:20 +0000, Luke Kenneth Casson Leighton wrote:
> qt4 has support for "Rich Text" - simple things like "< b >hello< /b >" can be
> detected and displayed, and the size of the box is "enforced" as a minimum width
> and height onto the application.
>
> it's _essential_ that GTK have similar such functionality. implementing these
> features "outside" of the core gtk widget set - using pygtk2 alone - registers
> on the "awkward to literally impossible" scale.
What's wrong with using gtk.Label("<b>hello</b>", use_markup=True) ?
Sven
PS: Please note that I didn't test this code. The exact syntax may be a
litte bit different. But I am sure you will figure it out.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]