how to add hyperlink in text ?

112 views
Skip to first unread message

Virbhadra Gupta

unread,
Aug 2, 2018, 3:20:19 PM8/2/18
to Python Programming for Autodesk Maya
hello,

i have create a window. it has some text. i want to add hyperlink to some text let's www.google.com

anyone know about it ?
is it cmds.text() ?

Justin Israel

unread,
Aug 2, 2018, 3:37:12 PM8/2/18
to python_in...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/2285ee9c-f7ad-4042-8489-6de05e37cb75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Virbhadra Gupta

unread,
Aug 3, 2018, 11:51:10 AM8/3/18
to Python Programming for Autodesk Maya
Hey can you give any example like

cmds.text(l="hey click here.")

i need hyperlink  in click.

i actually i don't know html :(
 

On Friday, August 3, 2018 at 1:07:12 AM UTC+5:30, Justin Israel wrote:


On Fri, Aug 3, 2018, 7:20 AM Virbhadra Gupta <viru....@gmail.com> wrote:
hello,

i have create a window. it has some text. i want to add hyperlink to some text let's www.google.com

anyone know about it ?
is it cmds.text() ?

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.

Justin Israel

unread,
Aug 3, 2018, 4:10:44 PM8/3/18
to python_in...@googlegroups.com


On Sat, Aug 4, 2018, 3:51 AM Virbhadra Gupta <viru....@gmail.com> wrote:
Hey can you give any example like

cmds.text(l="hey click here.")

i need hyperlink  in click.

i actually i don't know html :(

Google knows html for you. 

Try this:

cmds.text(l='<a href="http://lmgtfy.com/?q=HTML+link">hey click here.</a>', hl=True)

 

On Friday, August 3, 2018 at 1:07:12 AM UTC+5:30, Justin Israel wrote:


On Fri, Aug 3, 2018, 7:20 AM Virbhadra Gupta <viru....@gmail.com> wrote:
hello,

i have create a window. it has some text. i want to add hyperlink to some text let's www.google.com

anyone know about it ?
is it cmds.text() ?

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/305e98f0-318c-4b0e-b7d6-30a7f689b483%40googlegroups.com.

Virbhadra Gupta

unread,
Aug 4, 2018, 3:12:19 PM8/4/18
to Python Programming for Autodesk Maya
Thanks Justin!!!


On Saturday, August 4, 2018 at 1:40:44 AM UTC+5:30, Justin Israel wrote:


On Sat, Aug 4, 2018, 3:51 AM Virbhadra Gupta <viru....@gmail.com> wrote:
Hey can you give any example like

cmds.text(l="hey click here.")

i need hyperlink  in click.

i actually i don't know html :(

Google knows html for you. 

Try this:

cmds.text(l='<a href="http://lmgtfy.com/?q=HTML+link">hey click here.</a>', hl=True)

 

On Friday, August 3, 2018 at 1:07:12 AM UTC+5:30, Justin Israel wrote:


On Fri, Aug 3, 2018, 7:20 AM Virbhadra Gupta <viru....@gmail.com> wrote:
hello,

i have create a window. it has some text. i want to add hyperlink to some text let's www.google.com

anyone know about it ?
is it cmds.text() ?

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages