Line 1... |
Line 1... |
#!/usr/bin/env python
|
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
import wx
|
import wx
|
import guiparent
|
import guiparent
|
|
|
import os # se usa para el dialogo de abrir fichero
|
import os # se usa para el dialogo de abrir fichero
|
Line 29... |
Line 30... |
self.list_box_dispositivos_conectados.SetFont(font1)
|
self.list_box_dispositivos_conectados.SetFont(font1)
|
|
|
|
|
def menu_item_ayuda_acerca_de_handler(self, event): # wxGlade: wg_parent_class.<event_handler>
|
def menu_item_ayuda_acerca_de_handler(self, event): # wxGlade: wg_parent_class.<event_handler>
|
description = """
|
description = """
|
PHR GUI es una interfaz grafica que permite interactuar con
|
PHR GUI es una interfaz gráfica que permite interactuar con
|
la Plataforma de Hardware Reconfigurable (desarrollada en el
|
la Plataforma de Hardware Reconfigurable (CUDAR) a través
|
CUDAR) a traves del software xc3sprog.
|
del software xc3sprog.
|
|
|
Revision (SVN) xxx.
|
SVN $Rev$
|
|
$Date: 2014-06-10 03:04:35 +0200 (Tue, 10 Jun 2014) $
|
"""
|
"""
|
licence = """
|
licence = """
|
PHR GUI is free software; you can redistribute it and/or modify
|
PHR GUI is free software; you can redistribute it and/or modify
|
it under the terms of the GNU General Public License as
|
it under the terms of the GNU General Public License as
|
published by the Free Software Foundation; either version 2
|
published by the Free Software Foundation; either version 2
|
Line 67... |
Line 69... |
event.Skip()
|
event.Skip()
|
|
|
|
|
def menu_item_ayuda_hint_handler(self, event): # wxGlade: guiParent.<event_handler>
|
def menu_item_ayuda_hint_handler(self, event): # wxGlade: guiParent.<event_handler>
|
mensaje = """
|
mensaje = """
|
Procedimiento para usar este programa:
|
Procedimiento general para utilizar este programa:
|
|
|
?
|
1. Conecte el programador y presione en el botón \"Detectar\".
|
|
Se listaran los dispositivos encontrados en la cadena JTAG.
|
|
|
|
2. Seleccione el dispositivo que desea programar o configurar.
|
|
|
|
3. Elija un fichero de configuración/programación.
|
|
*.BIT para FPGA
|
|
*.JED para CPLD
|
|
|
|
4. Presione el botón \"Transferir\".
|
|
|
|
Considere las recomendaciones de la placa específica que esté
|
|
utilizando.
|
"""
|
"""
|
wx.MessageBox(mensaje, 'Info', wx.OK | wx.ICON_INFORMATION)
|
wx.MessageBox(mensaje, 'Info', wx.OK | wx.ICON_INFORMATION)
|
event.Skip()
|
event.Skip()
|
|
|
|
|
def boton_elegir_fichero_handler(self, event): # wxGlade: wg_parent_class.<event_handler>
|
def boton_elegir_fichero_handler(self, event): # wxGlade: wg_parent_class.<event_handler>
|
wildcard = "Archivo BIT de Xilinx (*.bit)|*.bit|" \
|
wildcard = "Archivo BIT de Xilinx (*.bit)|*.bit|" \
|
|
"Archivo JEDEC para CPLD (*.jed)|*.jed|" \
|
"Todos los archivos (*.*)|*.*"
|
"Todos los archivos (*.*)|*.*"
|
dialog = wx.FileDialog(None, "Elija un archivo", os.getcwd(), "", wildcard, wx.OPEN)
|
dialog = wx.FileDialog(None, "Elija un archivo", os.getcwd(), "", wildcard, wx.OPEN)
|
if dialog.ShowModal() == wx.ID_OK:
|
if dialog.ShowModal() == wx.ID_OK:
|
self.text_ctrl_fichero.SetValue(dialog.GetPath())
|
self.text_ctrl_fichero.SetValue(dialog.GetPath())
|
print "New file to transfer: " + dialog.GetPath()
|
print "New file to transfer: " + dialog.GetPath()
|