[Glade-users] Use Markup in Glade
- From: tristan.van.berkom at gmail.com (Tristan Van Berkom)
- Subject: [Glade-users] Use Markup in Glade
- Date: Fri, 22 Oct 2010 23:03:26 +0900
On Fri, Oct 22, 2010 at 10:50 PM, Arthur Shats <ashats at hotmail.com> wrote:
Well, in my python code I use
pangoFont = pango.FontDescription("Verdana 12")
myLabel.modify_font(pangoFont)
and it does modify the font no matter if I do set 'Use Markup' in Glade or
don't. So, the question is, is?this the right way to?do things: just set
font?in the code like above and don't set 'Use Markup' in Glade?
GtkBuilder lets you set pango attributes directly, Glade lets you
apply the attributes in a dialog.
The main advantage to this is that translators are generally
annoyed by developers leaving markup in strings to translate.
But ofcourse.. *cough*, you are not using GtkBuilder... or
a recent version of Glade.
Cheers,
-Tristan
Thanks,
Arthur.
Date: Thu, 21 Oct 2010 11:17:56 -0300
From: john at jcoppens.com
To: glade-users at lists.ximian.com
Subject: Re: [Glade-users] Use Markup in Glade
On Thu, 21 Oct 2010 12:29:21 +0000
Arthur Shats <ashats at hotmail.com> wrote:
I see that Glade has 'Use Markup' property.
Check the Pango Reference Manual, chapter "Pango Text Attribute Markup
Language".
'Use Markup' just enables the markup.
John
_______________________________________________
Glade-users maillist - Glade-users at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-users
_______________________________________________
Glade-users maillist ?- ?Glade-users at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-users
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]