diff --git a/python/mine/ri_tk.py b/python/mine/ri_tk.py
index 80848cc..480bd2a 100644
--- a/python/mine/ri_tk.py
+++ b/python/mine/ri_tk.py
@@ -52,3 +52,9 @@ def display_widget_sub(w, p_win):
def kill_widget(win):
''' win - Tk window instance '''
win.destroy()
+
+def display_entry(w):
+
+def display_listbox(w):
+
+def display_radiobutton(w):
diff --git a/python/mine/ri_widget.py b/python/mine/ri_widget.py
index 53b6416..0725b12 100644
--- a/python/mine/ri_widget.py
+++ b/python/mine/ri_widget.py
@@ -52,7 +52,6 @@ class Widget:
for w in w_list:
self.widgets.append(Widget(w))
-
def widget_attribute(self, xml_node):
attr_list = [ a for a in xml_node.childNodes
if a.nodeType == a.ELEMENT_NODE and a.nodeName == "widget_attribute"]
@@ -70,6 +69,49 @@ class Widget:
d[a.name] = a.value
return d
+ def display(self):
+ display_widget(self)
+
+class Label(Widget):
+ ''' Label '''
+ def __init__(self, xml_node):
+ Widget.__init__(self, xml_node)
+
+class Button(Widget):
+ ''' Button '''
+ def __init__(self, xml_node):
+ Widget.__init__(self, xml_node)
+
+class Frame(Widget):
+ ''' Frame '''
+ def __init__(self, xml_node):
+ Widget.__init__(self, xml_node)
+
+class Entry(Widget):
+ ''' Entry '''
+ def __init__(self, xml_node):
+ Widget.__init__(self, xml_node)
+
+ def display(self):
+ display_entry(self)
+
+class Listbox(Widget):
+ ''' Listbox '''
+ def __init__(self, xml_node):
+ Widget.__init__(self, xml_node)
+#### need add scroll bar
+
+ def display(self):
+ display_listbox(self)
+
+class Radiobutton(Widget):
+ ''' Radiobutton '''
+ def __init__(self, xml_node):
+ Widget.__init__(self, xml_node)
+### need add radios
+
+ def display(self):
+ display_radiobutton(self)
def construct(xml_root):
''' construct Widget's static members'''
diff --git a/xml/interface_t.xml b/xml/interface_t.xml
index 271ca13..aa4bcac 100644
--- a/xml/interface_t.xml
+++ b/xml/interface_t.xml
@@ -20,7 +20,7 @@ row 4 | quit previous next |
-
+
@@ -93,6 +93,7 @@ row 3 | |
row 4 | |
|____________________________________________________________|
-->
+
@@ -120,8 +121,166 @@ row 4 | |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ host name
+ 主机名
+
+
+
+ Network Configuration Management:
+ 网络配置方式
+
+
+
+
+