lpcmanager

9780486de8d8
Parents 486ac5df99ae
Children 949d52a4a155
Moving imports to the right module, stripping some dead code.
--- a/LPCBeremiz.py Mon Feb 05 13:02:21 2018 +0100
+++ b/LPCBeremiz.py Mon Feb 05 13:03:09 2018 +0100
@@ -5,9 +5,13 @@
from VariableExporter import VariableWriter
+# XXX TODO : strip dead code. document.
+
lpcberemiz_cmd = None
+SCROLLBAR_UNIT = 10
+ID_EXPORT = 7500
class LPCBeremiz(Beremiz):
def _init_coll_FileMenu_Items(self, parent):
--- a/LPCCommand.py Mon Feb 05 13:02:21 2018 +0100
+++ b/LPCCommand.py Mon Feb 05 13:03:09 2018 +0100
@@ -3,6 +3,7 @@
import sys
from threading import Timer
import cmd
+from types import StringType, UnicodeType
import wx
def location(loc):
--- a/LPCManager.py Mon Feb 05 13:02:21 2018 +0100
+++ b/LPCManager.py Mon Feb 05 13:03:09 2018 +0100
@@ -2,6 +2,9 @@
# -*- coding: utf-8 -*-
import sys
import os
+import getopt
+import __builtin__
+import time
# On Windows install schema, we compute path to beremiz
# relative to path to python folder (sys.path[0] in that case)
@@ -11,15 +14,6 @@
# Then we add it to sys.path, to make "import Beremiz" possible
sys.path.append(_beremiz_folder)
-import fnmatch
-import shutil
-import threading
-import zipfile
-import tempfile
-import getopt
-import __builtin__
-from types import StringType, UnicodeType
-import time
import wx
from util.BitmapLibrary import AddBitmapFolder
@@ -862,28 +856,6 @@
# except:
# havecanfestival = False
-SCROLLBAR_UNIT = 10
-ID_EXPORT = 7500
-WINDOW_COLOUR = wx.Colour(240, 240, 240)
-TITLE_COLOUR = wx.Colour(200, 200, 220)
-CHANGED_TITLE_COLOUR = wx.Colour(220, 200, 220)
-CHANGED_WINDOW_COLOUR = wx.Colour(255, 240, 240)
-
-if wx.Platform == '__WXMSW__':
- faces = {'times': 'Times New Roman',
- 'mono': 'Courier New',
- 'helv': 'Arial',
- 'other': 'Comic Sans MS',
- 'size': 16,
- }
-else:
- faces = {'times': 'Times',
- 'mono': 'Courier',
- 'helv': 'Helvetica',
- 'other': 'new century schoolbook',
- 'size': 18,
- }
-
# ConfTreeNodeEditor.SHOW_BASE_PARAMS = False
# -------------------------------------------------------------------------------