If you look in the wiki, https://redmine.darktable.org/projects/darktable/wiki/LuaUsage, there is a line that says lua is restricted to the lighttable view and that the darkroom view is off limits.
Regards, Bill On Mon, Sep 5, 2016 at 3:39 PM, Jon Trinder <[email protected]> wrote: > Hello all > > And my thanks to anyone taking time to read this and extra thanks if you > can answer it. > > > I expected the lua code below to attach one test label in the lightable > view and one in darkroom view, but they both appear in the lighttable view. > > Have I done something impressively dumb, or overlooked something. > > any thoughts appreciated > > Jon > > lua code is.... > > local darktable = require "darktable" > > local my_label = darktable.new_widget("label") > my_label.label = "Hello, world !\n the Cat" > > local my_dlabel = darktable.new_widget("label") > my_dlabel.label = "Hello, world !\n and the dog" > > > darktable.register_lib("test2","test2",false,false,{ > [darktable.gui.views.lighttable] = {"DT_UI_CONTAINER_PANEL_LEFT_B > OTTOM",20}, > },my_label) > > > darktable.register_lib("test3","test3",false,false,{ > [darktable.gui.views.darkroom] = {"DT_UI_CONTAINER_PANEL_LEFT_C > ENTER",20}, > },my_dlabel) > ____________________________________________________________ > _______________ > darktable developer mailing list > to unsubscribe send a mail to darktable-dev+unsubscribe@list > s.darktable.org > > ___________________________________________________________________________ darktable developer mailing list to unsubscribe send a mail to [email protected]
