diff -r a6ff2b3fcc25 -r 2245e8776086 LDViewer.py --- a/LDViewer.py Mon Sep 10 16:12:29 2007 +0200 +++ b/LDViewer.py Mon Sep 10 18:16:07 2007 +0200 @@ -448,7 +448,7 @@ #------------------------------------------------------------------------------- def AddLadderRung(self): - dialog = LDElementDialog(self.Parent, "coil") + dialog = LDElementDialog(self.ParentWindow, "coil") varlist = [] vars = self.Controler.GetCurrentElementEditingInterfaceVars() if vars: @@ -537,7 +537,7 @@ for element in self.SelectedElement.GetElements(): wires.append(element) if len(wires) > 0: - dialog = LDElementDialog(self.Parent, "contact") + dialog = LDElementDialog(self.ParentWindow, "contact") varlist = [] vars = self.Controler.GetCurrentElementEditingInterfaceVars() if vars: @@ -758,7 +758,7 @@ new_wire.ConnectEndPoint(None, connectors[index + 1]) right_elements.reverse() elif right_powerrail: - dialog = LDElementDialog(self.Parent, "coil") + dialog = LDElementDialog(self.ParentWindow, "coil") varlist = [] vars = self.Controler.GetCurrentElementEditingInterfaceVars() if vars: @@ -1179,7 +1179,7 @@ if self.GetDrawingMode() == FREEDRAWING_MODE: Viewer.EditContactContent(self, contact) else: - dialog = LDElementDialog(self.Parent, "contact") + dialog = LDElementDialog(self.ParentWindow, "contact") varlist = [] vars = self.Controler.GetCurrentElementEditingInterfaceVars() if vars: @@ -1202,7 +1202,7 @@ if self.GetDrawingMode() == FREEDRAWING_MODE: Viewer.EditCoilContent(self, coil) else: - dialog = LDElementDialog(self.Parent, "coil") + dialog = LDElementDialog(self.ParentWindow, "coil") varlist = [] vars = self.Controler.GetCurrentElementEditingInterfaceVars() if vars: