--- a/BeremizIDE.py Tue Jun 06 13:13:57 2017 +0300
+++ b/BeremizIDE.py Tue Jun 06 14:21:53 2017 +0300
@@ -272,6 +272,13 @@
self._RecursiveAddMenuItems(parent, GetAddMenuItems())
def _init_coll_HelpMenu_Items(self, parent):
+ handler=lambda event: {
+ wx.MessageBox(version.GetCommunityHelpMsg(), _(u'Community support'), wx.OK | wx.ICON_INFORMATION)
+ }
+ id = wx.NewId()
+ parent.Append(help='', id=id, kind=wx.ITEM_NORMAL, text=_(u'Community support'))
+ self.Bind(wx.EVT_MENU, handler, id=id)
+
parent.Append(help='', id=wx.ID_ABOUT,
kind=wx.ITEM_NORMAL, text=_(u'About'))
self.Bind(wx.EVT_MENU, self.OnAboutMenu, id=wx.ID_ABOUT)
--- a/PLCOpenEditor.py Tue Jun 06 13:13:57 2017 +0300
+++ b/PLCOpenEditor.py Tue Jun 06 14:21:53 2017 +0300
@@ -156,6 +156,14 @@
# kind=wx.ITEM_NORMAL, text=u'PLCOpen\tF2')
#AppendMenu(parent, help='', id=wx.ID_HELP_CONTEXT,
# kind=wx.ITEM_NORMAL, text=u'IEC 61131-3\tF3')
+
+ handler=lambda event: {
+ wx.MessageBox(version.GetCommunityHelpMsg(), _(u'Community support'), wx.OK | wx.ICON_INFORMATION)
+ }
+ id = wx.NewId()
+ parent.Append(help='', id=id, kind=wx.ITEM_NORMAL, text=_(u'Community support'))
+ self.Bind(wx.EVT_MENU, handler, id=id)
+
AppendMenu(parent, help='', id=wx.ID_ABOUT,
kind=wx.ITEM_NORMAL, text=_(u'About'))
self.Bind(wx.EVT_MENU, self.OnPLCOpenEditorMenu, id=wx.ID_HELP)
--- a/version.py Tue Jun 06 13:13:57 2017 +0300
+++ b/version.py Tue Jun 06 14:21:53 2017 +0300
@@ -26,6 +26,16 @@
import subprocess, os
import util.paths as paths
+def GetCommunityHelpMsg():
+ return _("The best place to ask questions about Beremiz/PLCOpenEditor\n"
+ "is project's mailing list: beremiz-devel@lists.sourceforge.net\n"
+ "\n"
+ "This is the main community support channel.\n"
+ "For posting it is required to be subscribed to the mailing list.\n"
+ "\n"
+ "You can subscribe to the list here:\n"
+ "https://lists.sourceforge.net/lists/listinfo/beremiz-devel")
+
def GetAppRevision():
rev = None
app_dir=paths.AbsDir(__file__)