parseThinlet reads a thinlet's XML file (or XML data) and returns a Thinlet object. When container is specified, the Thinlet object is added to container .
import javax.swing.*
parseThinlet("calculator.xml", f = JFrame())
f.pack()
f.show()
The result of parseThinlet() can be obtained by calling getThinlet() . Also, the methods of the Thinlet object can be called as functions without specifying the target object.
thinletMode(true) modifies the Configuration of the current context , so that Thinlet component's methods/properties can be accessed more intuitively than in Java. When parseThinlet() is called, thinlet mode is automatically set true. When an event handler function is defined prior to parseThinlet(), this function should be used before the the event handler's definition.
thinletMode(false) resets the configuration possibly set by thinletMode(true).thinletMode() with no parameter returns true if thinlet mode is set true.
getThinlet() returns the last result of parseThinlet() call.