Re: [pygtk] How can I create hyperlink on a Dialog Box

2005-04-29 Thread Brian
On Fri, 2005-29-04 at 05:28 -0700, Mahmad Sadique Hannure wrote:
> I am working on a module called Report Bugs which
> requires a hyperlink which open our web site in
> default browser. I am able to implement effect looks
> like a hyperlink by using Pango Markup language
> as like
> 
> 
> label.set_text(" underline=\"single\">" +[PROTECTED WEB SITE] +
> ")
> label.set_use_markup(True)
> 
> So if any one knows the solution please help me
> 
> Thaank You
> 
> __

I don't know if this will work in a dialog box the same, but here is how
we do it in a TextBuffer.  It should be very similar.

http://cvs.sourceforge.net/viewcvs.py/porthole/porthole/summary.py?view=markup

Hope this helps.
-- 
Brian <[EMAIL PROTECTED]>

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


[pygtk] How can I create hyperlink on a Dialog Box

2005-04-29 Thread Mahmad Sadique Hannure
I am working on a module called Report Bugs which
requires a hyperlink which open our web site in
default browser. I am able to implement effect looks
like a hyperlink by using Pango Markup language
as like


label.set_text("" +[PROTECTED WEB SITE] +
")
label.set_use_markup(True)

So if any one knows the solution please help me

Thaank You

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] Gtk.ImageMenuItem

2005-04-29 Thread Eric Jardim
On 4/29/05, Milen Dzhumerov <[EMAIL PROTECTED]> wrote:
... I provide a stock_id but I don't need a accel group
so I pass None. Is there a way to set and change the label next to theimage?


Hmm, I think it will use the label of the stock_id. You can add your
custom stock items with your custom labels and images, and then use it:
http://www.pygtk.org/pygtk2reference/gtk-stock-items.html#function-gtk--stock-add

I generally create MenuItems with actions:
http://www.pygtk.org/pygtk2reference/class-gtkaction.html#method-gtkaction--create-menu-item

This way, I dont have to care about how it creates the image, label and
accels. And more, I can create other types like toolitems and buttons.

But if you really want to access the label, I think that after you
create the ImageMenuItem, as it is a GtkBin, you just have to find a
label children inside the Box child (only child of the item). If that
is annoying, create an utility function :)

[Eric Jardim]
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


[pygtk] Gtk.ImageMenuItem

2005-04-29 Thread Milen Dzhumerov
Hi all,

Sorry for asking this silly question, but I couldn't figure out how to
set a label for a Gtk.ImageMenuItem. On this
address(http://www.pygtk.org/pygtk2reference/class-gtkimagemenuitem.html
) it says that the constructor is "gtk.ImageMenuItem(stock_id=None,
accel_group=None)", I provide a stock_id but I don't need a accel group
so I pass None. Is there a way to set and change the label next to the
image?

Regards,
gamehack

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/