pyvcp_demo.xml
1 <?xml version='1.0' encoding='UTF-8'?> 2 <pyvcp> 3 <vbox> 4 5 6 7 8 9 <label><text>"These widgets indicate a HAL_BIT"</text></label> 10 <hbox> 11 <label><text>"LED:"</text></label> 12 <led> 13 <halpin>"led-sample"</halpin> 14 <size>20</size> 15 </led> 16 </hbox> 17 18 <label><text>"These widgets control a HAL_BIT"</text></label> 19 <vbox> 20 <hbox> 21 <label><text>"Button"</text></label> 22 <button> 23 <text>"Button:"</text> 24 <halpin>"button-sample"</halpin> 25 </button> 26 </hbox> 27 <hbox> 28 <label><text>"Checkbutton:"</text></label> 29 <checkbutton> 30 31 <halpin>"chbutton-sample"</halpin> 32 </checkbutton> 33 </hbox> 34 </vbox> 35 36 <label><text>"These widgets indicate a HAL_FLOAT"</text></label> 37 <vbox> 38 39 <hbox> 40 <label><text>"Bar:"</text></label> 41 <bar> 42 <halpin>"bar-sample"</halpin> 43 </bar> 44 </hbox> 45 <hbox> 46 <label><text>"Number:"</text></label> 47 <number> 48 <halpin>"number-sample"</halpin> 49 <format>"+004.4f"</format> 50 <font>('Helvetica',40)</font> 51 </number> 52 </hbox> 53 </vbox> 54 55 <label><text>"These widgets control a HAL_FLOAT"</text></label> 56 <vbox> 57 <hbox> 58 <label><text>"Scale:"</text></label> 59 <scale> 60 <orient>HORIZONTAL</orient> 61 <halpin>"scale-sample"</halpin> 62 </scale> 63 </hbox> 64 <hbox> 65 <label><text>"Spinbox:"</text></label> 66 <spinbox> 67 <font>('Helvetica',40)</font> 68 </spinbox> 69 </hbox> 70 </vbox> 71 72 73 <!-- this is a comment--> 74 75 </vbox> 76 </pyvcp>