# HG changeset patch # User etisserant # Date 1189669611 -7200 # Node ID e8e9ddeed76ca384b84fc1c1cef8f24447c5b053 # Parent 2245e8776086edce6264e380d7fc0014d5b97bfa Fixed D&D crash and missing refresh diff -r 2245e8776086 -r e8e9ddeed76c Viewer.py --- a/Viewer.py Mon Sep 10 18:16:07 2007 +0200 +++ b/Viewer.py Thu Sep 13 09:46:51 2007 +0200 @@ -60,10 +60,10 @@ width, height = block.GetMinSize() block.SetSize(width, height) self.ParentWindow.AddBlock(block) - self.ParentWindow.Controler.AddCurrentElementEditingBlock(id) + self.ParentWindow.Controler.AddCurrentElementEditingBlock(id,values[0], values[2]) self.ParentWindow.RefreshBlockModel(block) self.ParentWindow.RefreshScrollBars() - self.ParentWindow.Update() + self.ParentWindow.Refresh() elif values[1] != "location": id = self.ParentWindow.GetNewId() if values[1] == "Output": @@ -80,7 +80,7 @@ self.ParentWindow.Controler.AddCurrentElementEditingVariable(id, var_type) self.ParentWindow.RefreshVariableModel(variable) self.ParentWindow.RefreshScrollBars() - self.ParentWindow.Update() + self.ParentWindow.Refresh() """