IDEFrame.py
branchpython3
changeset 3752 9f6f46dbe3ae
parent 3750 f62625418bff
child 3755 ca814b175391
equal deleted inserted replaced
3751:a80a66ba52d6 3752:9f6f46dbe3ae
    21 # You should have received a copy of the GNU General Public License
    21 # You should have received a copy of the GNU General Public License
    22 # along with this program; if not, write to the Free Software
    22 # along with this program; if not, write to the Free Software
    23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    24 
    24 
    25 
    25 
    26 
       
    27 import sys
    26 import sys
    28 import base64
    27 import base64
    29 from future.builtins import \
       
    30     round, \
       
    31     str as text
       
    32 
    28 
    33 import wx
    29 import wx
    34 import wx.grid
    30 import wx.grid
    35 import wx.aui
    31 import wx.aui
    36 from six.moves import cPickle, xrange
    32 from six.moves import cPickle
    37 
    33 
    38 from editors.EditorPanel import EditorPanel
    34 from editors.EditorPanel import EditorPanel
    39 from editors.SFCViewer import SFC_Viewer
    35 from editors.SFCViewer import SFC_Viewer
    40 from editors.LDViewer import LD_Viewer
    36 from editors.LDViewer import LD_Viewer
    41 from editors.TextViewer import TextViewer
    37 from editors.TextViewer import TextViewer
   109 
   105 
   110 
   106 
   111 def DecodeFileSystemPath(path, is_base64=True):
   107 def DecodeFileSystemPath(path, is_base64=True):
   112     if is_base64:
   108     if is_base64:
   113         path = base64.decodestring(path)
   109         path = base64.decodestring(path)
   114     return text(path, sys.getfilesystemencoding())
   110     return str(path, sys.getfilesystemencoding())
   115 
   111 
   116 
   112 
   117 def AppendMenu(parent, help, kind, text, id=wx.ID_ANY):
   113 def AppendMenu(parent, help, kind, text, id=wx.ID_ANY):
   118     return parent.Append(wx.MenuItem(helpString=help, kind=kind, text=text, id=id))
   114     return parent.Append(wx.MenuItem(helpString=help, kind=kind, text=text, id=id))
   119 
   115