equal
deleted
inserted
replaced
35 |
35 |
36 from six.moves import cPickle, xrange |
36 from six.moves import cPickle, xrange |
37 import wx.lib.buttons |
37 import wx.lib.buttons |
38 import wx.lib.statbmp |
38 import wx.lib.statbmp |
39 import wx.stc |
39 import wx.stc |
|
40 import wx.adv |
40 |
41 |
41 |
42 |
42 import version |
43 import version |
43 from editors.EditorPanel import EditorPanel |
44 from editors.EditorPanel import EditorPanel |
44 from editors.Viewer import Viewer |
45 from editors.Viewer import Viewer |
962 |
963 |
963 def OnQuitMenu(self, event): |
964 def OnQuitMenu(self, event): |
964 self.Close() |
965 self.Close() |
965 |
966 |
966 def OnAboutMenu(self, event): |
967 def OnAboutMenu(self, event): |
967 info = version.GetAboutDialogInfo() |
968 info = wx.adv.AboutDialogInfo() |
|
969 info = version.GetAboutDialogInfo(info) |
|
970 info.Name = "Beremiz" |
|
971 info.Description = _("Open Source framework for automation, " |
|
972 "implemented IEC 61131 IDE with constantly growing set of extensions " |
|
973 "and flexible PLC runtime.") |
|
974 |
|
975 info.Icon = wx.Icon(Bpath("images", "about_brz_logo.png"), wx.BITMAP_TYPE_PNG) |
|
976 |
968 ShowAboutDialog(self, info) |
977 ShowAboutDialog(self, info) |
969 |
978 |
970 def OnProjectTreeItemBeginEdit(self, event): |
979 def OnProjectTreeItemBeginEdit(self, event): |
971 selected = event.GetItem() |
980 selected = event.GetItem() |
972 if self.ProjectTree.GetPyData(selected)["type"] == ITEM_CONFNODE: |
981 if self.ProjectTree.GetPyData(selected)["type"] == ITEM_CONFNODE: |