home *** CD-ROM | disk | FTP | other *** search
-
- import sys
- import LEDx
-
-
- sys.path.append("C:\\Blade\\Lib")
- sys.path.append("C:\\Blade\\Lib\\PythonLib")
- sys.path.append("C:\\Blade\\Lib\\PythonLib\\lib-tk")
- sys.path.append("C:\\Blade\\Lib\\PythonLib\\DLLs")
- sys.path.append("C:\\Blade\\Lib\\PythonLib\\Pmw")
- sys.path.append("C:\\Blade\\Lib\\PythonLib\\Pmw\\Pmw_0_8")
- sys.path.append("C:\\Blade\\Lib\\PythonLib\\Pmw\\Pmw_0_8\\lib")
-
-
-
-
- # *******************************
- # *** Definici≤n de funciones ***
- # *******************************
-
- # *** Funciones de guardar y cargar selecci≤n ***
-
- def ListSelected():
- l=[]
- for i in range(LEDx.NumSectors()):
- s=LEDx.Sector(i)
- if s.IsSelected():
- l.append(s)
- return l
-
- def SelectList(lista):
- for s in lista:
- s.Select(1,0)
- lista[0].Select(1,1)
-
-
- # *** Scripts asignados a botones de la barra de python ***
-
- LEDx.SetScript(0,"lista=ListSelected()")
- LEDx.SetScript(1,"SelectList(lista)")
- LEDx.SetScript(2,"execfile('datosescopy.py')")
- #LEDx.SetScript(2,"execfile('.\python\escteesc.py')")
- #LEDx.SetScript(3,"execfile('.\python\dlgesces.py')")
-