Thanks Saeed for your detailed explanations :) I am really grateful.
On Mon, Dec 24, 2012 at 10:04 AM, Saeed Rasooli <[email protected]> wrote: > About GtkButton, yes, and you have 2 options, which is show below as 2 > examples: > > ____________________________________________ > > import gtk > > win = gtk.Dialog() > button = gtk.Button('Hello <b>World</b>') > button.child.set_use_markup(True) ## button.child is a Label > win.vbox.pack_start(button, 1, 1) > win.vbox.show_all() > win.run() > This example helped solved my case like a charm (with the only change that "button.child" should be changed to "button.get_child()". Rest -- absolutely through and correct example. Thanks again !! > > ____________________________________________ > > import gtk > > win = gtk.Dialog() > button = gtk.Button() ## don't add anything inside the button by now > label = gtk.Label('Hello <b>World</b>') > label.set_use_markup(True) > button.add(label) > win.vbox.pack_start(button, 1, 1) > win.vbox.show_all() > win.run() > > > On Sun, Dec 23, 2012 at 3:59 PM, Ajay Garg <[email protected]> wrote: > >> Will be grateful for any pointers. >> >> >> Regards, >> Ajay >> >> _______________________________________________ >> pygtk mailing list [email protected] >> http://www.daa.com.au/mailman/listinfo/pygtk >> Read the PyGTK FAQ: http://faq.pygtk.org/ >> > > Regards, Ajay
_______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
