rozen, Thursday 18 April 2013 à 05:55
|
|
Subscription date : 20 December 2009
Messages : 19
|
Hi,
I am using cair-dock 3.1.99.rc2 on Linux Mint 13 with XFCE 4.8 and OpenGL.
I am trying to write a couple of simple applets in Python using the PopupDialog. First of all, I would like to change the font and font-size of string presented. Is there a way of doing that? The configure section of the documentation mentions shows font settings; I am unclear how to use them.
If I build an image, is there a way to display it in a PopupDialog?
Or is there some other kind of popup I could build and display?
I apologize if this is not a well formed question.
Thanks in Advance,
Don |
matttbe, Thursday 18 April 2013 à 17:20
|
|
Subscription date : 24 January 2009
Messages : 12573
|
Hello,
About the font and text attribute, you can use the markup language (after having set: "use-markup" = true) => http://www.gtk.org/api/2.6/pango/PangoMarkupFormat.html.
E.g.: self.icon.PopupDialog( {"message" : "<span foreground='blue' size='x-large'>Blue text</span> is <i>cool</i>!",
"time-length" : 5,
"use-markup" : true},
{} )
=> ww_page.php?p=Documentation&lang=en#16-PopupDialog
If I build an image, is there a way to display it in a PopupDialog? You can change the icon in the dialogue attribute: "icon" : "gtk-stock-edit" |
|