I am new to this forum. Thanks for creating this nice forum and all the stuff here.
I do have a problem creating lua scripts with the ETK Framework.
I am using the Student Software to simulate the scripts.
Can someone just tell me on howto implement the ETK Framework.
Basically I just want to test the following:
- Code: Tout sélectionner
do
local Input = etk.Widgets.Input
local Label = etk.Widgets.Label
local Button = etk.Widgets.Button
local myView = etk.View()
local btn1,inp2
local btn1 = Button{}
local inp2 = Input{}
btn1.position = Position { top='31px',left='235px' }
inp2.position = Position { top='31px',left='22px' }
myView:addChildren(btn1,inp2)
etk.RootScreen:pushScreen(myView)
end
When copy pasting this I do get the following error:
2: attempt to index global 'etk' (a nil value)
I also tried copying the etk and extras folder to the Documents/CX folder in Windows. Tried also to transfer the ETK files to my handheld but this does not work.
So how can I just start coding with ETK framework?
Thank you everyone.
Best Wishes
j_love