PLCOpenEditor.py
changeset 177 a3f6670949ba
parent 176 18af41faafd1
child 179 32f269883027
equal deleted inserted replaced
176:18af41faafd1 177:a3f6670949ba
  1771             self.RefreshProjectTree()
  1771             self.RefreshProjectTree()
  1772         dialog.Destroy()
  1772         dialog.Destroy()
  1773         event.Skip()
  1773         event.Skip()
  1774 
  1774 
  1775     def GenerateAddResourceFunction(self, config_name):
  1775     def GenerateAddResourceFunction(self, config_name):
  1776         def OnAddResourceMenu(self, event):
  1776         def OnAddResourceMenu(event):
  1777             dialog = ResourceNameDialog(self, "Please enter resource name", "Add new resource")
  1777             dialog = ResourceNameDialog(self, "Please enter resource name", "Add new resource")
  1778             dialog.SetPouNames(self.Controler.GetProjectPouNames())
  1778             dialog.SetPouNames(self.Controler.GetProjectPouNames())
  1779             dialog.SetPouElementNames(self.Controler.GetProjectPouVariables())
  1779             dialog.SetPouElementNames(self.Controler.GetProjectPouVariables())
  1780             if dialog.ShowModal() == wx.ID_OK:
  1780             if dialog.ShowModal() == wx.ID_OK:
  1781                 value = dialog.GetValue()
  1781                 value = dialog.GetValue()