2 Replies Latest reply on Jul 20, 2009 3:22 PM by kc2scy

    using the tekui toolkit with lightroom

    kc2scy

       

       

       

      Hello all,

      first I'm new to this scripting language  and the plugin API for Lightroom so please forgive my ignorance .

       

      I was wondering if any one as try using the tekui toolkit?

      I been trying to uses it with no luck I keep getting the error "Could not find namespace tek.ui

      I can run the sample helloworld.lua from the tekui sample file with knoiw problem..

       

      I’m not sure if I need to recompile anything etc.

       

       

      Any help would be great

      Mike

       

      code---------

      this lua file I'm trying to uses to load the tekui dialog box..

       

      MyHWExportItem = {}

       

      function MyHWExportItem.showModalDialog()

      ui = require"tek.ui"

       

      ui.Application:new

      {

                  Children =

                  {

                              ui.Window:new

                              {

                                          Title = "Hello",

                                          HideOnEscape = true,

                                          Children =

                                          {

                                                      ui.Button:new

                                                      {

                                                                  Text = "_Hello, World!",

                                                                  onPress = function(self, pressed)

                                                                              if pressed == false then

                                                                                          print "Hello, World!"

                                                                              end

                                                                              ui.Button.onPress(self, pressed)

                                                                  end,

                                                      },

                                          },

                              },

                  },

      }:run()

       

      end

       

      MyHWExportItem.showModalDialog()