more G-Labs products

Author Topic: Using HG Helper Class delegates from Python and Ruby  (Read 1528 times)

April 03, 2014, 05:55:55 PM
Read 1528 times

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Examples using Program.Setup method:

Python
Code: [Select]
#setup program stuff
def setup():
  hg.Program.Notify("Python Test", "Hello Python")
  return
hg.Program.Setup(setup)

Ruby
Code: [Select]
#setup program stuff
hg.Program.Setup(System::Action.new {
  hg.Program.Notify("Ruby Test", "Hello Ruby")
})

Cheers,
g.

April 07, 2014, 01:23:34 AM
Reply #1

Jan

  • **
  • Information
  • Jr. Member
  • Posts: 34
Hey Gene,

Just wanted to thank you for this info!

Of course, I'm still very much looking forward to a possible solution for Javascript, though  ;)

Best,
Jan