10% work
complete most xml relax ng work. work on real interface xml work on python scripts for parsing interface xml
This commit is contained in:
23
python/mine/test.py
Normal file
23
python/mine/test.py
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import ri_widget
|
||||
import ri_tk
|
||||
import ri_seq
|
||||
from xml.dom import minidom
|
||||
|
||||
xmldoc = minidom.parse("../../xml/interface_t.xml")
|
||||
|
||||
ri_widget.construct(xmldoc.firstChild)
|
||||
ri_seq.construct(xmldoc.firstChild)
|
||||
|
||||
base_widget_name = xmldoc.firstChild.attributes["base_widget"].value
|
||||
base_widget = ri_widget.Widget.dict[base_widget_name]
|
||||
|
||||
ri_tk.initialize(base_widget)
|
||||
|
||||
main_sequence_name = xmldoc.firstChild.attributes["sequence"].value
|
||||
main_sequence = ri_seq.dict[main_sequence_name]
|
||||
|
||||
ri_tk.display_widget(ri_widget.Widget.dict[main_sequence.steps[0]])
|
||||
|
||||
ri_tk.root_window.mainloop()
|
||||
Reference in New Issue
Block a user