The Following User Says Thank You to rcull For This Useful Post: | ||
|
2009-09-18
, 01:38
|
Posts: 146 |
Thanked: 15 times |
Joined on Oct 2008
|
#32
|
luis
You may have tried this but below is an extract from advoid where I add my own label to a button (there is also an icon on the button now)
It may help
RickCode:self.DoButtLab=gtk.Label("Update\nmy\nSystem") self.DoButtLab.set_justify(gtk.JUSTIFY_CENTER) self.DoButtLab.show() self.DoButt=gtk.Button() self.Dbox=gtk.HBox(True,0) self.Dbox.pack_start(self.DoButtLab,True,True,0) self.DoButt.add(self.Dbox) self.Dbox.show() self.DoButt.connect("clicked",self.Upd_Host_File)
|
2009-09-18
, 07:01
|
|
Posts: 299 |
Thanked: 168 times |
Joined on Jun 2006
@ Wales UK
|
#33
|
The Following User Says Thank You to rcull For This Useful Post: | ||
|
2009-09-18
, 18:05
|
Posts: 146 |
Thanked: 15 times |
Joined on Oct 2008
|
#34
|
luis
Try
widget_class "*<GtkLabel>" style "label-font"
I think this says alter any widget which has a label inside it ( I havn't tried this myself )
|
2009-09-18
, 18:28
|
|
Posts: 299 |
Thanked: 168 times |
Joined on Jun 2006
@ Wales UK
|
#35
|
|
2009-09-18
, 20:36
|
Posts: 146 |
Thanked: 15 times |
Joined on Oct 2008
|
#36
|
def makefont(self): Settings=gtk.settings_get_for_screen(gdk.screen_get_default()) gtk.rc_parse_string(""" style "general" { font_name = "sans """+str(self.font)+""" " } style "out" { font_name = "sans """+str(self.font+6)+""" " } style "label" { font_name = "sans bold """+str(self.font-4)+""" " } class "*" style "general" class "GtkTreeView" style "out" class "GtkLabel" style "label" widget_class "*<GtkButton>.<GtkLabel>" style "label" """) gtk.rc_reset_styles(Settings)
|
2009-09-18
, 23:07
|
|
Posts: 299 |
Thanked: 168 times |
Joined on Jun 2006
@ Wales UK
|
#37
|
You may have tried this but below is an extract from advoid where I add my own label to a button (there is also an icon on the button now)
It may help