Sha256: e49df1e1afee76ec25e13b7d6bd9d294a1d03a018e9581b9ede26f1420e1dc47
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
= TkXML Here is an example of a very simple TkXML document: <Tk:Root name="test" title="Test"> <Tk:Frame name="menuframe"> <Tk:Menubutton name="filebutton" text="File" underline="0"> <Tk:Menu name="filemenu" tearoff="false"> <Tk:_add _1="command" label="Open" command="openDocument" underline="0" accel="Ctrl+O" /> <Tk:_add _1="command" label="Exit" command="exitApplication" underline="0" accel="Ctrl+Q" /> </Tk:Menu> <Tk:_pack side="left" /> </Tk:Menubutton> <Tk:_pack side="left" /> </Tk:Frame> <Tk:_bind _1="Control-o" _2="openDocument" /> <Tk:_bind _1="Control-q" _2="exitApplication" /> </Tk:Root> To run the Tk application, let us assume the above document has been read from file and stored in +source+. Then: tkxml = TkXML.new(source) tkxml.build Notice we have not created any methods for the commands. This is something that still needs to be done.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tkxml-0.3.1 | QED.rdoc |