Viewer.py
changeset 345 d79f73a337d7
parent 343 dc8ff76b39fd
child 352 5cd60f7e510c
equal deleted inserted replaced
344:0acc2bd658f0 345:d79f73a337d7
  1532                                 self.ParentWindow.OpenGraphicViewer(iec_path)
  1532                                 self.ParentWindow.OpenGraphicViewer(iec_path)
  1533                     else:
  1533                     else:
  1534                         self.ParentWindow.OpenGraphicViewer(iec_path)
  1534                         self.ParentWindow.OpenGraphicViewer(iec_path)
  1535             elif event.ControlDown() and not event.ShiftDown():
  1535             elif event.ControlDown() and not event.ShiftDown():
  1536                 if self.IsBlock(self.SelectedElement) and self.SelectedElement.GetType() in self.Controler.GetProjectPouNames(self.Debug):
  1536                 if self.IsBlock(self.SelectedElement) and self.SelectedElement.GetType() in self.Controler.GetProjectPouNames(self.Debug):
  1537                     self.ParentWindow.EditProjectElement(ITEM_POU, self.SelectedElement.GetType())
  1537                     self.ParentWindow.EditProjectElement(ITEM_POU, self.Controler.ComputePouName(self.SelectedElement.GetType()))
  1538                 else:
  1538                 else:
  1539                     self.SelectedElement.OnLeftDClick(event, self.GetLogicalDC(), self.Scaling)
  1539                     self.SelectedElement.OnLeftDClick(event, self.GetLogicalDC(), self.Scaling)
  1540             elif event.ControlDown() and event.ShiftDown():
  1540             elif event.ControlDown() and event.ShiftDown():
  1541                 movex, movey = self.SelectedElement.AdjustToScaling(self.Scaling)
  1541                 movex, movey = self.SelectedElement.AdjustToScaling(self.Scaling)
  1542                 self.SelectedElement.RefreshModel()
  1542                 self.SelectedElement.RefreshModel()