modified: ri_tk.py

back a4ed7fc27f
This commit is contained in:
fling
2010-10-20 09:37:04 +08:00
parent f97703aa6c
commit 6f97dc1bdc

View File

@@ -96,8 +96,6 @@ def create_widget_sub(w, p_win):
if not v_n in var_dict.keys():
# if not yet in dict, create it
var_dict[v_n] = getattr(Tkinter, v_t)(value=v_v)
else:
print 'error: variable(%s) already defined' %v_n
# change attr, if needed to suit tk
tk_attr = dict(w.attr)
@@ -159,10 +157,6 @@ def process_action_quit(w):
if 'action' in dir(w) and 'quit' in w.action.dict:
getattr(sys.modules['ri_cmd'], w.action.dict['quit'])()
if 'variables' in dir(w):
for v_n, v_t, v_v in w.variables:
del var_dict[v_n]
if 'widgets' in dir(w):
for sub_w in w.widgets:
process_action_quit(sub_w)