File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -103,13 +103,16 @@ def setup_additional_live_update(w: ttk.Button, frame):
103103 return
104104
105105 def _callback (* args ):
106- old = frame .old_object_info
107- values = {
108- k : convert_to_objects (v , True )
109- for k , v in frame ._read_gui_values ().items ()
110- if not isinstance (v , str ) or v != ''
111- }
112- async_execute (old .real_object .update (** values ), parent_window = frame .origin_window )
106+ async def async_callback ():
107+ old = frame .old_object_info
108+ values = {
109+ k : convert_to_objects (v )
110+ for k , v in frame ._read_gui_values ().items ()
111+ if not isinstance (v , str ) or v != ''
112+ }
113+ await old .real_object .update (** values )
114+
115+ async_execute (async_callback (), parent_window = frame .origin_window )
113116
114117 w .configure (command = _callback )
115118 ToolTip (w , "Update the actual object with new parameters (taken from this window)" , topmost = True )
You can’t perform that action at this time.
0 commit comments