Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Applets | Applets Font Change in PopupDialog - Is it possible?
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Applets | Applets

Subjects Author Language Messages Last message
[Locked] Font Change in PopupDialog - Is it possible?
rozen English 1 matttbe [Read]
18 April 2013 à 17:20

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"

Applets | Applets

Subjects Author Language Messages Last message
[Locked] Font Change in PopupDialog - Is it possible?
rozen English 1 matttbe [Read]
18 April 2013 à 17:20


Glx-Dock / Cairo-Dock List of forums Applets | Applets Font Change in PopupDialog - Is it possible? Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.