OpenCores
URL https://opencores.org/ocsvn/phr/phr/trunk

Subversion Repositories phr

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /phr/trunk/codigo/gui
    from Rev 172 to Rev 182
    Reverse comparison

Rev 172 → Rev 182

/interfaz/ban.jpg Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
interfaz/ban.jpg Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: interfaz/phr.ico =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: interfaz/phr.ico =================================================================== --- interfaz/phr.ico (nonexistent) +++ interfaz/phr.ico (revision 182)
interfaz/phr.ico Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: interfaz/interfaz.wxg =================================================================== --- interfaz/interfaz.wxg (nonexistent) +++ interfaz/interfaz.wxg (revision 182) @@ -0,0 +1,185 @@ + + + + + + + phr.ico + PHR GUI + 1 + 1 + wxSYS_COLOUR_3DFACE + + + Listo + + + + 0 + 3 + 5 + 0 + 1 + 0 + + wxEXPAND + 0 + + + 0 + 1 + 1 + 2 + 0 + + wxALL + 5 + + + 1 + ban.jpg + + + + wxEXPAND + 0 + + + 0 + 2 + 1 + 0 + + wxRIGHT|wxTOP|wxBOTTOM|wxEXPAND + 5 + + + + + boton_ayuda + + + + + wxRIGHT|wxBOTTOM|wxEXPAND + 5 + + + + + boton_acerca_de + + + + + + + + + wxEXPAND + 0 + + + 0 + 1 + 0 + 2 + 0 + + wxALL|wxEXPAND + 5 + + + + + + wxRIGHT|wxTOP|wxBOTTOM + 5 + + + + + boton_elegir_fichero + + + + + + + wxEXPAND + 0 + + + 0 + 1 + 2 + 0 + + wxLEFT|wxRIGHT|wxBOTTOM|wxEXPAND + 5 + + + + + boton_conf_fpga + + + + + wxRIGHT|wxBOTTOM|wxEXPAND + 5 + + + + + boton_prog_prom + + + + + + + wxALL|wxEXPAND + 5 + + + + -1, 150 + + + + wxEXPAND + 0 + + + 0 + 1 + 2 + 0 + + wxLEFT|wxBOTTOM + 5 + + + + + boton_conexion + + + + + wxRIGHT|wxBOTTOM|wxALIGN_RIGHT + 5 + + + + + boton_borrar + + + + + + + + Index: interfaz/gui.py =================================================================== --- interfaz/gui.py (nonexistent) +++ interfaz/gui.py (revision 182) @@ -0,0 +1,126 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# generated by wxGlade 0.6.3 on Wed Mar 26 16:29:14 2014 + +import wx + +# begin wxGlade: extracode +# end wxGlade + + + +class MyFrame(wx.Frame): + def __init__(self, *args, **kwds): + # begin wxGlade: MyFrame.__init__ + kwds["style"] = wx.DEFAULT_FRAME_STYLE + wx.Frame.__init__(self, *args, **kwds) + self.frame_1_statusbar = self.CreateStatusBar(1, 0) + self.bitmap_1 = wx.StaticBitmap(self, -1, wx.Bitmap("ban.jpg", wx.BITMAP_TYPE_ANY)) + self.button_help = wx.Button(self, -1, " Ayuda ") + self.button_about = wx.Button(self, -1, " Acerca de ") + self.text_ctrl_file = wx.TextCtrl(self, -1, "") + self.button_choose_file = wx.Button(self, -1, "Elegir fichero") + self.button_conf_fpga = wx.Button(self, -1, "Configurar FPGA") + self.button_prog_prom = wx.Button(self, -1, "Programar PROM") + self.text_ctrl_console = wx.TextCtrl(self, -1, "", style=wx.TE_MULTILINE|wx.TE_READONLY|wx.HSCROLL) + self.button_conection = wx.Button(self, -1, u" Comprobar conexión ") + self.button_empty = wx.Button(self, -1, " Borrar salida ") + + self.__set_properties() + self.__do_layout() + + self.Bind(wx.EVT_BUTTON, self.boton_ayuda, self.button_help) + self.Bind(wx.EVT_BUTTON, self.boton_acerca_de, self.button_about) + self.Bind(wx.EVT_BUTTON, self.boton_elegir_fichero, self.button_choose_file) + self.Bind(wx.EVT_BUTTON, self.boton_conf_fpga, self.button_conf_fpga) + self.Bind(wx.EVT_BUTTON, self.boton_prog_prom, self.button_prog_prom) + self.Bind(wx.EVT_BUTTON, self.boton_conexion, self.button_conection) + self.Bind(wx.EVT_BUTTON, self.boton_borrar, self.button_empty) + # end wxGlade + + def __set_properties(self): + # begin wxGlade: MyFrame.__set_properties + self.SetTitle("PHR GUI") + _icon = wx.EmptyIcon() + _icon.CopyFromBitmap(wx.Bitmap("phr.ico", wx.BITMAP_TYPE_ANY)) + self.SetIcon(_icon) + self.SetBackgroundColour(wx.SystemSettings_GetColour(wx.SYS_COLOUR_3DFACE)) + self.frame_1_statusbar.SetStatusWidths([-1]) + # statusbar fields + frame_1_statusbar_fields = ["Listo"] + for i in range(len(frame_1_statusbar_fields)): + self.frame_1_statusbar.SetStatusText(frame_1_statusbar_fields[i], i) + self.text_ctrl_console.SetMinSize((-1, 150)) + # end wxGlade + + def __do_layout(self): + # begin wxGlade: MyFrame.__do_layout + grid_sizer_1 = wx.FlexGridSizer(5, 1, 0, 0) + grid_sizer_2 = wx.GridSizer(1, 2, 0, 0) + grid_sizer_4 = wx.GridSizer(1, 2, 0, 0) + grid_sizer_5 = wx.FlexGridSizer(1, 2, 0, 0) + grid_sizer_6 = wx.FlexGridSizer(1, 2, 0, 0) + grid_sizer_7 = wx.FlexGridSizer(2, 1, 0, 0) + grid_sizer_6.Add(self.bitmap_1, 0, wx.ALL, 5) + grid_sizer_7.Add(self.button_help, 0, wx.RIGHT|wx.TOP|wx.BOTTOM|wx.EXPAND, 5) + grid_sizer_7.Add(self.button_about, 0, wx.RIGHT|wx.BOTTOM|wx.EXPAND, 5) + grid_sizer_6.Add(grid_sizer_7, 1, wx.EXPAND, 0) + grid_sizer_6.AddGrowableCol(1) + grid_sizer_1.Add(grid_sizer_6, 1, wx.EXPAND, 0) + grid_sizer_5.Add(self.text_ctrl_file, 0, wx.ALL|wx.EXPAND, 5) + grid_sizer_5.Add(self.button_choose_file, 0, wx.RIGHT|wx.TOP|wx.BOTTOM, 5) + grid_sizer_5.AddGrowableCol(0) + grid_sizer_1.Add(grid_sizer_5, 1, wx.EXPAND, 0) + grid_sizer_4.Add(self.button_conf_fpga, 1, wx.LEFT|wx.RIGHT|wx.BOTTOM|wx.EXPAND, 5) + grid_sizer_4.Add(self.button_prog_prom, 0, wx.RIGHT|wx.BOTTOM|wx.EXPAND, 5) + grid_sizer_1.Add(grid_sizer_4, 1, wx.EXPAND, 0) + grid_sizer_1.Add(self.text_ctrl_console, 0, wx.ALL|wx.EXPAND, 5) + grid_sizer_2.Add(self.button_conection, 0, wx.LEFT|wx.BOTTOM, 5) + grid_sizer_2.Add(self.button_empty, 0, wx.RIGHT|wx.BOTTOM|wx.ALIGN_RIGHT, 5) + grid_sizer_1.Add(grid_sizer_2, 1, wx.EXPAND, 0) + self.SetSizer(grid_sizer_1) + grid_sizer_1.Fit(self) + grid_sizer_1.SetSizeHints(self) + grid_sizer_1.AddGrowableRow(3) + grid_sizer_1.AddGrowableCol(0) + self.Layout() + # end wxGlade + + def boton_ayuda(self, event): # wxGlade: MyFrame. + print "Event handler `boton_ayuda' not implemented!" + event.Skip() + + def boton_acerca_de(self, event): # wxGlade: MyFrame. + print "Event handler `boton_acerca_de' not implemented!" + event.Skip() + + def boton_elegir_fichero(self, event): # wxGlade: MyFrame. + print "Event handler `boton_elegir_fichero' not implemented!" + event.Skip() + + def boton_conf_fpga(self, event): # wxGlade: MyFrame. + print "Event handler `boton_conf_fpga' not implemented!" + event.Skip() + + def boton_prog_prom(self, event): # wxGlade: MyFrame. + print "Event handler `boton_prog_prom' not implemented!" + event.Skip() + + def boton_conexion(self, event): # wxGlade: MyFrame. + print "Event handler `boton_conexion' not implemented!" + event.Skip() + + def boton_borrar(self, event): # wxGlade: MyFrame. + print "Event handler `boton_borrar' not implemented!" + event.Skip() + +# end of class MyFrame + + +if __name__ == "__main__": + app = wx.PySimpleApp(0) + wx.InitAllImageHandlers() + frame_1 = MyFrame(None, -1, "") + app.SetTopWindow(frame_1) + frame_1.Show() + app.MainLoop() Index: windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/imagen.jpg =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/imagen.jpg =================================================================== --- windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/imagen.jpg (nonexistent) +++ windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/imagen.jpg (revision 182)
windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/imagen.jpg Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/phr-gui.py =================================================================== --- windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/phr-gui.py (nonexistent) +++ windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/phr-gui.py (revision 182) @@ -0,0 +1,116 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# generated by wxGlade 0.6.3 on Tue Mar 18 21:30:25 2014 + +import wx +# imports by maximiq +import os # se usa para el dialogo de abrir fichero +import subprocess # para interactuar con el shell + +# begin wxGlade: extracode +# end wxGlade + + + +class MyFrame(wx.Frame): + def __init__(self, *args, **kwds): + # begin wxGlade: MyFrame.__init__ + kwds["style"] = wx.DEFAULT_FRAME_STYLE + wx.Frame.__init__(self, *args, **kwds) + self.frame_1_statusbar = self.CreateStatusBar(1, 0) + self.bitmap_1 = wx.StaticBitmap(self, -1, wx.Bitmap("imagen.jpg", wx.BITMAP_TYPE_ANY)) + self.label_1 = wx.StaticText(self, -1, "Aca puede ir algo de texto para aclarar como es el \nprocedimiento para hacer andar el programa.") + self.text_ctrl_3 = wx.TextCtrl(self, -1, "") + self.button_3 = wx.Button(self, -1, "Elegir fichero") + self.button_4 = wx.Button(self, -1, "Grabar") + self.text_ctrl_2 = wx.TextCtrl(self, -1, "", style=wx.TE_PROCESS_ENTER|wx.TE_MULTILINE) + + self.__set_properties() + self.__do_layout() + + self.Bind(wx.EVT_BUTTON, self.choose_file_button, self.button_3) + self.Bind(wx.EVT_BUTTON, self.action_button, self.button_4) + # end wxGlade + + def __set_properties(self): + # begin wxGlade: MyFrame.__set_properties + self.SetTitle("Titulo de la ventana") + self.frame_1_statusbar.SetStatusWidths([-1]) + # statusbar fields + frame_1_statusbar_fields = ["frame_1_statusbar"] + for i in range(len(frame_1_statusbar_fields)): + self.frame_1_statusbar.SetStatusText(frame_1_statusbar_fields[i], i) + self.text_ctrl_2.SetMinSize((350, 135)) + # end wxGlade + + def __do_layout(self): + # begin wxGlade: MyFrame.__do_layout + sizer_1 = wx.BoxSizer(wx.VERTICAL) + grid_sizer_1 = wx.FlexGridSizer(5, 1, 0, 0) + grid_sizer_2 = wx.FlexGridSizer(1, 3, 0, 0) + grid_sizer_1.Add(self.bitmap_1, 0, wx.ALL, 5) + grid_sizer_1.Add(self.label_1, 0, wx.ALL, 5) + grid_sizer_2.Add(self.text_ctrl_3, 0, wx.ALL|wx.EXPAND, 5) + grid_sizer_2.Add(self.button_3, 0, wx.RIGHT|wx.TOP|wx.BOTTOM, 5) + grid_sizer_2.Add(self.button_4, 0, wx.RIGHT|wx.TOP|wx.BOTTOM, 5) + grid_sizer_2.AddGrowableCol(0) + grid_sizer_1.Add(grid_sizer_2, 1, wx.EXPAND, 0) + grid_sizer_1.Add(self.text_ctrl_2, 0, wx.ALL|wx.EXPAND, 5) + sizer_1.Add(grid_sizer_1, 1, wx.EXPAND, 0) + self.SetSizer(sizer_1) + sizer_1.Fit(self) + self.Layout() + self.Centre() + # end wxGlade + + def choose_file_button(self, event): # wxGlade: MyFrame. + #funcion editada por maximiq + #self.text_ctrl_3.SetValue("Hola") + + wildcard = "Python source (*.py)|*.py|" \ + "Compiled Python (*.pyc)|*.pyc|" \ + "All files (*.*)|*.*" + dialog = wx.FileDialog(None, "Titulo de la ventana", os.getcwd(), "", wildcard, wx.OPEN) + if dialog.ShowModal() == wx.ID_OK: + self.text_ctrl_3.SetValue(dialog.GetPath()) + + dialog.Destroy() + + event.Skip() + + def action_button(self, event): # wxGlade: MyFrame. + #print "Event handler `action_button' not implemented" + # by maximiq + + # preparar entorno + self.button_4.Disable() + self.frame_1_statusbar.SetFields(["Espere ..."]) + + self.text_ctrl_2.WriteText("\n======================================\n" \ + + "El fichero elegido es:\n" \ + + self.text_ctrl_3.GetValue() \ + + "\n\nEjecucion de un comando (dir c:):\n") + + command = "dir c:" # the shell command + process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True) + + for line in iter(process.stdout.readline, ''): + self.text_ctrl_2.WriteText(line) + process.stdout.close() + + # finalizando + self.button_4.Enable() + self.frame_1_statusbar.SetFields(["Listo"]) + + event.Skip() + +# end of class MyFrame + + +if __name__ == "__main__": + app = wx.App(False) + #wx.InitAllImageHandlers() + frame_1 = MyFrame(None, -1, "") + app.SetTopWindow(frame_1) + frame_1.Show() + app.MainLoop() Index: windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/rapid.wxg =================================================================== --- windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/rapid.wxg (nonexistent) +++ windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/rapid.wxg (revision 182) @@ -0,0 +1,98 @@ + + + + + + + Titulo de la ventana + 1 + 1 + + + frame_1_statusbar + + + + wxVERTICAL + + wxEXPAND + 0 + + + 0 + 5 + 1 + 0 + + wxALL + 5 + + + 1 + C:\Me\minimal python2.7.6\prueba 2\imagen.jpg + + + + wxALL + 5 + + + 1 + + + + + wxEXPAND + 0 + + + 0 + 1 + 0 + 3 + 0 + + wxALL|wxEXPAND + 5 + + + + + + wxRIGHT|wxTOP|wxBOTTOM + 5 + + + + + choose_file_button + + + + + wxRIGHT|wxTOP|wxBOTTOM + 5 + + + + + action_button + + + + + + + wxALL|wxEXPAND + 5 + + + + 350, 135 + + + + + + + Index: windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/setup.py =================================================================== --- windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/setup.py (nonexistent) +++ windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/setup.py (revision 182) @@ -0,0 +1,53 @@ +#!/usr/bin/python + +from distutils.core import setup +import py2exe + +manifest = """ + + + +Your Application + + + + + + +""" + +""" +installs manifest and icon into the .exe +but icon is still needed as we open it +for the window icon (not just the .exe) +changelog and logo are included in dist +""" + +setup( + options = { + "py2exe":{ + "dll_excludes": ["MSVCP90.dll", "HID.DLL", "w9xpopen.exe"], + } + }, + windows = [ + { + "script": "phr-gui.py", + # "icon_resources": [(1, "yourapplication.ico")], + # "other_resources": [(24,1,manifest)] + } + ], + # data_files=["yourapplication.ico"] +) Index: windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/nis/leame.txt =================================================================== --- windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/nis/leame.txt (nonexistent) +++ windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/nis/leame.txt (revision 182) @@ -0,0 +1,6 @@ +En la seccion Section -Post + +agregar: + ExecWait '$INSTDIR\vcredist_x86.exe /q' + +se debe copiar el vcredist_x86.exe en la carpeta de distribucion \ No newline at end of file Index: windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/nis/Licencia.txt =================================================================== --- windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/nis/Licencia.txt (nonexistent) +++ windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/nis/Licencia.txt (revision 182) @@ -0,0 +1 @@ +Este es el archivo para la licencia. \ No newline at end of file Index: windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/nis/vcredist_x86.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/nis/vcredist_x86.exe =================================================================== --- windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/nis/vcredist_x86.exe (nonexistent) +++ windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/nis/vcredist_x86.exe (revision 182)
windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/nis/vcredist_x86.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/nis/phr-gui_instalar.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/nis/phr-gui_instalar.exe =================================================================== --- windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/nis/phr-gui_instalar.exe (nonexistent) +++ windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/nis/phr-gui_instalar.exe (revision 182)
windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/nis/phr-gui_instalar.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/nis/para_instalar.nsi =================================================================== --- windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/nis/para_instalar.nsi (nonexistent) +++ windows/minimal python2.7.6/wx_simple_gui_events_dist_libs/nis/para_instalar.nsi (revision 182) @@ -0,0 +1,136 @@ +; Script generated by the HM NIS Edit Script Wizard. + +; HM NIS Edit Wizard helper defines +!define PRODUCT_NAME "PHR GUI" +!define PRODUCT_VERSION "1.0" +!define PRODUCT_PUBLISHER "CUDAR" +!define PRODUCT_WEB_SITE "http://www.micompañia.com" +!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\phr-gui.exe" +!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" +!define PRODUCT_UNINST_ROOT_KEY "HKLM" + +; MUI 1.67 compatible ------ +!include "MUI.nsh" + +; MUI Settings +!define MUI_ABORTWARNING +!define MUI_ICON "C:\Me\minimal python2.7.6\phr.ico" +!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico" + +; Welcome page +!insertmacro MUI_PAGE_WELCOME +; License page +!insertmacro MUI_PAGE_LICENSE "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist_libs\nis\Licencia.txt" +; Directory page +!insertmacro MUI_PAGE_DIRECTORY +; Instfiles page +!insertmacro MUI_PAGE_INSTFILES +; Finish page +!define MUI_FINISHPAGE_RUN "$INSTDIR\phr-gui.exe" +!insertmacro MUI_PAGE_FINISH + +; Uninstaller pages +!insertmacro MUI_UNPAGE_INSTFILES + +; Language files +!insertmacro MUI_LANGUAGE "Spanish" + +; MUI end ------ + +Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" +OutFile "Instalar.exe" +InstallDir "$PROGRAMFILES\PHR GUI" +InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" "" +ShowInstDetails show +ShowUnInstDetails show + +Section "Principal" SEC01 + SetOutPath "$INSTDIR" + File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist_libs\dist\bz2.pyd" + File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist_libs\dist\imagen.jpg" + File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist_libs\dist\library.zip" + File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist_libs\dist\phr-gui.exe" + CreateDirectory "$SMPROGRAMS\PHR GUI" + CreateShortCut "$SMPROGRAMS\PHR GUI\PHR GUI.lnk" "$INSTDIR\phr-gui.exe" + CreateShortCut "$DESKTOP\PHR GUI.lnk" "$INSTDIR\phr-gui.exe" + File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist_libs\dist\python27.dll" + File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist_libs\dist\select.pyd" + File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist_libs\dist\unicodedata.pyd" + File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist_libs\dist\vcredist_x86.exe" + File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist_libs\dist\wx._controls_.pyd" + File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist_libs\dist\wx._core_.pyd" + File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist_libs\dist\wx._gdi_.pyd" + File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist_libs\dist\wx._misc_.pyd" + File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist_libs\dist\wx._windows_.pyd" + File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist_libs\dist\wxbase30u_net_vc90.dll" + File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist_libs\dist\wxbase30u_vc90.dll" + File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist_libs\dist\wxmsw30u_adv_vc90.dll" + File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist_libs\dist\wxmsw30u_core_vc90.dll" + File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist_libs\dist\wxmsw30u_html_vc90.dll" + File "C:\Me\minimal python2.7.6\wx_simple_gui_events_dist_libs\dist\_hashlib.pyd" +SectionEnd + +Section -AdditionalIcons + WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}" + CreateShortCut "$SMPROGRAMS\PHR GUI\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url" + CreateShortCut "$SMPROGRAMS\PHR GUI\Uninstall.lnk" "$INSTDIR\uninst.exe" +SectionEnd + +Section -Post + ExecWait '$INSTDIR\vcredist_x86.exe /q' + WriteUninstaller "$INSTDIR\uninst.exe" + WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\phr-gui.exe" + WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)" + WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe" + WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\phr-gui.exe" + WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}" + WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}" + WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}" +SectionEnd + + +Function un.onUninstSuccess + HideWindow + MessageBox MB_ICONINFORMATION|MB_OK "La desinstalación de $(^Name) finalizó satisfactoriamente." +FunctionEnd + +Function un.onInit + MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "¿Está completamente seguro que desea desinstalar $(^Name) junto con todos sus componentes?" IDYES +2 + Abort +FunctionEnd + +Section Uninstall + Delete "$INSTDIR\${PRODUCT_NAME}.url" + Delete "$INSTDIR\uninst.exe" + Delete "$INSTDIR\_hashlib.pyd" + Delete "$INSTDIR\wxmsw30u_html_vc90.dll" + Delete "$INSTDIR\wxmsw30u_core_vc90.dll" + Delete "$INSTDIR\wxmsw30u_adv_vc90.dll" + Delete "$INSTDIR\wxbase30u_vc90.dll" + Delete "$INSTDIR\wxbase30u_net_vc90.dll" + Delete "$INSTDIR\wx._windows_.pyd" + Delete "$INSTDIR\wx._misc_.pyd" + Delete "$INSTDIR\wx._gdi_.pyd" + Delete "$INSTDIR\wx._core_.pyd" + Delete "$INSTDIR\wx._controls_.pyd" + Delete "$INSTDIR\vcredist_x86.exe" + Delete "$INSTDIR\unicodedata.pyd" + Delete "$INSTDIR\select.pyd" + Delete "$INSTDIR\python27.dll" + Delete "$INSTDIR\phr-gui.exe" + Delete "$INSTDIR\library.zip" + Delete "$INSTDIR\imagen.jpg" + Delete "$INSTDIR\bz2.pyd" + + Delete "$SMPROGRAMS\PHR GUI\Uninstall.lnk" + Delete "$SMPROGRAMS\PHR GUI\Website.lnk" + Delete "$DESKTOP\PHR GUI.lnk" + Delete "$SMPROGRAMS\PHR GUI\PHR GUI.lnk" + + RMDir "$SMPROGRAMS\PHR GUI" + RMDir "$INSTDIR" + + DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" + DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}" + SetAutoClose true +SectionEnd \ No newline at end of file Index: windows/gui/phr-gui.py =================================================================== --- windows/gui/phr-gui.py (nonexistent) +++ windows/gui/phr-gui.py (revision 182) @@ -0,0 +1,305 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# generated by wxGlade 0.6.3 on Wed Mar 26 16:29:14 2014 + +import wx +# imports by maximiq +import os # se usa para el dialogo de abrir fichero +import subprocess # para interactuar con el shell + + +# begin wxGlade: extracode +# end wxGlade + + + +class MyFrame(wx.Frame): + def __init__(self, *args, **kwds): + # begin wxGlade: MyFrame.__init__ + kwds["style"] = wx.DEFAULT_FRAME_STYLE + wx.Frame.__init__(self, *args, **kwds) + self.frame_1_statusbar = self.CreateStatusBar(1, 0) + self.bitmap_1 = wx.StaticBitmap(self, -1, wx.Bitmap("grafica/banner.jpg", wx.BITMAP_TYPE_ANY)) + self.button_help = wx.Button(self, -1, " Ayuda ") + self.button_about = wx.Button(self, -1, " Acerca de ") + self.text_ctrl_file = wx.TextCtrl(self, -1, "") + self.button_choose_file = wx.Button(self, -1, "Elegir fichero") + self.button_conf_fpga = wx.Button(self, -1, "Configurar FPGA") + self.button_prog_prom = wx.Button(self, -1, "Programar PROM") + self.text_ctrl_console = wx.TextCtrl(self, -1, "", style=wx.TE_MULTILINE|wx.TE_READONLY|wx.HSCROLL) + self.button_conection = wx.Button(self, -1, u" Comprobar conexión ") + self.button_empty = wx.Button(self, -1, " Borrar salida ") + + self.__set_properties() + self.__do_layout() + + self.Bind(wx.EVT_BUTTON, self.boton_ayuda, self.button_help) + self.Bind(wx.EVT_BUTTON, self.boton_acerca_de, self.button_about) + self.Bind(wx.EVT_BUTTON, self.boton_elegir_fichero, self.button_choose_file) + self.Bind(wx.EVT_BUTTON, self.boton_conf_fpga, self.button_conf_fpga) + self.Bind(wx.EVT_BUTTON, self.boton_prog_prom, self.button_prog_prom) + self.Bind(wx.EVT_BUTTON, self.boton_conexion, self.button_conection) + self.Bind(wx.EVT_BUTTON, self.boton_borrar, self.button_empty) + # end wxGlade + + def __set_properties(self): + # begin wxGlade: MyFrame.__set_properties + self.SetTitle("PHR GUI") + _icon = wx.EmptyIcon() + _icon.CopyFromBitmap(wx.Bitmap("grafica/phr-gui.ico", wx.BITMAP_TYPE_ANY)) + self.SetIcon(_icon) + self.SetBackgroundColour(wx.SystemSettings_GetColour(wx.SYS_COLOUR_3DFACE)) + self.frame_1_statusbar.SetStatusWidths([-1]) + # statusbar fields + frame_1_statusbar_fields = ["Listo"] + for i in range(len(frame_1_statusbar_fields)): + self.frame_1_statusbar.SetStatusText(frame_1_statusbar_fields[i], i) + self.text_ctrl_console.SetMinSize((-1, 150)) + # end wxGlade + # start maximiq + font1 = self.text_ctrl_console.GetFont() + font1 = wx.Font(font1.GetPointSize(), wx.TELETYPE, + font1.GetStyle(), + font1.GetWeight(), font1.GetUnderlined()) + self.text_ctrl_console.SetFont(font1) + #font1 = wx.Font(9, wx.MODERN, wx.NORMAL, wx.NORMAL, False, u'Consolas') + #self.text_ctrl_console.SetFont(font1) + self.text_ctrl_console.SetValue("PHR>>> ") + + def __do_layout(self): + # begin wxGlade: MyFrame.__do_layout + grid_sizer_1 = wx.FlexGridSizer(5, 1, 0, 0) + grid_sizer_2 = wx.GridSizer(1, 2, 0, 0) + grid_sizer_4 = wx.GridSizer(1, 2, 0, 0) + grid_sizer_5 = wx.FlexGridSizer(1, 2, 0, 0) + grid_sizer_6 = wx.FlexGridSizer(1, 2, 0, 0) + grid_sizer_7 = wx.FlexGridSizer(2, 1, 0, 0) + grid_sizer_6.Add(self.bitmap_1, 0, wx.ALL, 5) + grid_sizer_7.Add(self.button_help, 0, wx.RIGHT|wx.TOP|wx.BOTTOM|wx.EXPAND, 5) + grid_sizer_7.Add(self.button_about, 0, wx.RIGHT|wx.BOTTOM|wx.EXPAND, 5) + grid_sizer_6.Add(grid_sizer_7, 1, wx.EXPAND, 0) + grid_sizer_6.AddGrowableCol(1) + grid_sizer_1.Add(grid_sizer_6, 1, wx.EXPAND, 0) + grid_sizer_5.Add(self.text_ctrl_file, 0, wx.ALL|wx.EXPAND, 5) + grid_sizer_5.Add(self.button_choose_file, 0, wx.RIGHT|wx.TOP|wx.BOTTOM, 5) + grid_sizer_5.AddGrowableCol(0) + grid_sizer_1.Add(grid_sizer_5, 1, wx.EXPAND, 0) + grid_sizer_4.Add(self.button_conf_fpga, 1, wx.LEFT|wx.RIGHT|wx.BOTTOM|wx.EXPAND, 5) + grid_sizer_4.Add(self.button_prog_prom, 0, wx.RIGHT|wx.BOTTOM|wx.EXPAND, 5) + grid_sizer_1.Add(grid_sizer_4, 1, wx.EXPAND, 0) + grid_sizer_1.Add(self.text_ctrl_console, 0, wx.ALL|wx.EXPAND, 5) + grid_sizer_2.Add(self.button_conection, 0, wx.LEFT|wx.BOTTOM, 5) + grid_sizer_2.Add(self.button_empty, 0, wx.RIGHT|wx.BOTTOM|wx.ALIGN_RIGHT, 5) + grid_sizer_1.Add(grid_sizer_2, 1, wx.EXPAND, 0) + self.SetSizer(grid_sizer_1) + grid_sizer_1.Fit(self) + grid_sizer_1.SetSizeHints(self) + grid_sizer_1.AddGrowableRow(3) + grid_sizer_1.AddGrowableCol(0) + self.Layout() + # end wxGlade + + def OnAboutBox(self): + + description = """ +PHR GUI es una interfaz grafica que permite interactuar con +la Plataforma de Hardware Reconfigurable (desarrollada en el +CUDAR) a traves del software xc3sprog. +""" + + licence = """ +PHR GUI is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as +published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +PHR GUI is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +See the GNU General Public License for more details. You should have +received a copy of the GNU General Public License along with +PHR GUI; if not, write to the Free Software Foundation, Inc., +59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +""" + + + info = wx.AboutDialogInfo() + + info.SetIcon(wx.Icon('grafica/phr-gui-96.png', wx.BITMAP_TYPE_PNG)) + info.SetName('PHR GUI') + info.SetVersion('0.1 r183') + info.SetDescription(description) + #info.SetCopyright('(C) 2014 CUDAR (UTN-FRC)') + info.SetCopyright('Abril de 2014, CUDAR (UTN-FRC)') + info.SetWebSite('http://opencores.org/project,phr') + #info.SetLicence(licence) + info.AddDeveloper('Luis Guanuco, Maximiliano Quinteros.') + + + wx.AboutBox(info) + + def ShowHelpMessage(self): + mensaje = """ +Procedimiento para usar este programa: + +Para configurar la FPGA: +1) Setear el jumper en la placa PHR en modo JTAG. +2) Elegir el archivo de configuracion (*.bit). +3) Presione el boton \"Configurar FPGA\". +4) Tras terminar el paso anterior la FPGA debe comenzar a funcionar. + +Para programar la memoria PROM: +1) Setear el jumper en la placa PHR en modo JTAG. +2) Elegir el archivo de programacion (*.bit). +3) Presione el boton \"Programar PROM\". +4) Una vez terminado el paso anterior, cambiar el jumper al modo \"Master +Serial\" y presionar el boton de RESET. + +Mas ayuda en los manuales que puede descargar desde el servidor de +OpenCores donde se aloja el proyecto: http://opencores.org/project,phr +""" + wx.MessageBox(mensaje, 'Info', + wx.OK | wx.ICON_INFORMATION) + + def boton_ayuda(self, event): # wxGlade: MyFrame. + self.ShowHelpMessage() + event.Skip() + + def boton_acerca_de(self, event): # wxGlade: MyFrame. + self.OnAboutBox() + event.Skip() + + def boton_elegir_fichero(self, event): # wxGlade: MyFrame. + #funcion editada por maximiq + + wildcard = "Archivo BIT de Xilinx (*.bit)|*.bit|" \ + "Todos los archivos (*.*)|*.*" + dialog = wx.FileDialog(None, "Elija un archivo", os.getcwd(), "", wildcard, wx.OPEN) + if dialog.ShowModal() == wx.ID_OK: + self.text_ctrl_file.SetValue(dialog.GetPath()) + + dialog.Destroy() + + event.Skip() + + def boton_conf_fpga(self, event): # wxGlade: MyFrame. + #funcion editada por maximiq + + ## preparar entorno + self.button_conf_fpga.Disable() + self.button_prog_prom.Disable() + self.button_conection.Disable() + self.button_empty.Disable() + self.frame_1_statusbar.SetFields(["Espere ..."]) + + ## accion + # se copia el fichero de programacion al directorio local + subprocess.call ("copy \"" + self.text_ctrl_file.GetValue() + "\" fpgaFile", shell=True) + + # se ejecuta el xc3sprog + command = "xc3sprog\\xc3sprog -v -L -c ftdi -p 0 fpgaFile:w:0:BIT" + + self.text_ctrl_console.AppendText(command + "\n") + + process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True) + + for line in iter(process.stdout.readline, ''): + self.text_ctrl_console.WriteText(line) + process.stdout.close() + + self.text_ctrl_console.AppendText("\nPHR>>> ") + + ## restaurar entorno + self.button_conf_fpga.Enable() + self.button_prog_prom.Enable() + self.button_conection.Enable() + self.button_empty.Enable() + self.frame_1_statusbar.SetFields(["Listo"]) + + event.Skip() + + def boton_prog_prom(self, event): # wxGlade: MyFrame. + #funcion editada por maximiq + + ## preparar entorno + self.button_conf_fpga.Disable() + self.button_prog_prom.Disable() + self.button_conection.Disable() + self.button_empty.Disable() + self.frame_1_statusbar.SetFields(["Espere ..."]) + + ## accion + + # se copia el fichero de programacion al directorio local + subprocess.call ("copy \"" + self.text_ctrl_file.GetValue() + "\" fpgaFile", shell=True) + + command = "xc3sprog\\xc3sprog.exe -v -L -c ftdi -p 1 fpgaFile:w:0:BIT" + + self.text_ctrl_console.AppendText(command + "\n") + + process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True) + + for line in iter(process.stdout.readline, ''): + self.text_ctrl_console.WriteText(line) + process.stdout.close() + + self.text_ctrl_console.AppendText("\nPHR>>> ") + + ## restaurar entorno + self.button_conf_fpga.Enable() + self.button_prog_prom.Enable() + self.button_conection.Enable() + self.button_empty.Enable() + self.frame_1_statusbar.SetFields(["Listo"]) + + event.Skip() + + def boton_conexion(self, event): # wxGlade: MyFrame. + #funcion editada por maximiq + + ## preparar entorno + self.button_conf_fpga.Disable() + self.button_prog_prom.Disable() + self.button_conection.Disable() + self.button_empty.Disable() + self.frame_1_statusbar.SetFields(["Espere ..."]) + + ## accion + command = "xc3sprog\\xc3sprog -c ftdi -L -j -v" # the shell command + + self.text_ctrl_console.AppendText(command + "\n") + + process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True) + + for line in iter(process.stdout.readline, ''): + self.text_ctrl_console.WriteText(line) + process.stdout.close() + + self.text_ctrl_console.AppendText("\nPHR>>> ") + + ## restaurar entorno + self.button_conf_fpga.Enable() + self.button_prog_prom.Enable() + self.button_conection.Enable() + self.button_empty.Enable() + self.frame_1_statusbar.SetFields(["Listo"]) + + event.Skip() + + def boton_borrar(self, event): # wxGlade: MyFrame. + #funcion editada por maximiq + + ## accion + self.text_ctrl_console.SetValue("PHR>>> ") # borra todo el contenido + + event.Skip() + +# end of class MyFrame + + +if __name__ == "__main__": + app = wx.App(False) + frame_1 = MyFrame(None, -1, "") + app.SetTopWindow(frame_1) + frame_1.Show() + app.MainLoop() Index: windows/gui/interfaz.wxg =================================================================== --- windows/gui/interfaz.wxg (nonexistent) +++ windows/gui/interfaz.wxg (revision 182) @@ -0,0 +1,185 @@ + + + + + + + phr.ico + PHR GUI + 1 + 1 + wxSYS_COLOUR_3DFACE + + + Listo + + + + 0 + 3 + 5 + 0 + 1 + 0 + + wxEXPAND + 0 + + + 0 + 1 + 1 + 2 + 0 + + wxALL + 5 + + + 1 + ban.jpg + + + + wxEXPAND + 0 + + + 0 + 2 + 1 + 0 + + wxRIGHT|wxTOP|wxBOTTOM|wxEXPAND + 5 + + + + + boton_ayuda + + + + + wxRIGHT|wxBOTTOM|wxEXPAND + 5 + + + + + boton_acerca_de + + + + + + + + + wxEXPAND + 0 + + + 0 + 1 + 0 + 2 + 0 + + wxALL|wxEXPAND + 5 + + + + + + wxRIGHT|wxTOP|wxBOTTOM + 5 + + + + + boton_elegir_fichero + + + + + + + wxEXPAND + 0 + + + 0 + 1 + 2 + 0 + + wxLEFT|wxRIGHT|wxBOTTOM|wxEXPAND + 5 + + + + + boton_conf_fpga + + + + + wxRIGHT|wxBOTTOM|wxEXPAND + 5 + + + + + boton_prog_prom + + + + + + + wxALL|wxEXPAND + 5 + + + + -1, 150 + + + + wxEXPAND + 0 + + + 0 + 1 + 2 + 0 + + wxLEFT|wxBOTTOM + 5 + + + + + boton_conexion + + + + + wxRIGHT|wxBOTTOM|wxALIGN_RIGHT + 5 + + + + + boton_borrar + + + + + + + + Index: windows/gui/setup.py =================================================================== --- windows/gui/setup.py (nonexistent) +++ windows/gui/setup.py (revision 182) @@ -0,0 +1,59 @@ +#!/usr/bin/python + +from distutils.core import setup +import py2exe +import glob + +manifest = """ + + + +Your Application + + + + + + +""" + +""" +installs manifest and icon into the .exe +but icon is still needed as we open it +for the window icon (not just the .exe) +changelog and logo are included in dist +""" + +setup( + options = { + "py2exe":{ + "dll_excludes": ["MSVCP90.dll", "HID.DLL", "w9xpopen.exe"], + } + }, + windows = [ + { + "script": "phr-gui.py", + "icon_resources": [(1, "grafica/phr-gui.ico")], + #"other_resources": [(24,1,manifest)] + } + ], + data_files=[ + ("grafica", glob.glob('grafica/*.*')), + ("ejemplos", glob.glob('ejemplos/*.*')), + ("xc3sprog", glob.glob('xc3sprog/*.*')), + ("redist", glob.glob('redist/*.*')), + ] +) Index: windows/gui/xc3sprog/javr.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: windows/gui/xc3sprog/javr.exe =================================================================== --- windows/gui/xc3sprog/javr.exe (nonexistent) +++ windows/gui/xc3sprog/javr.exe (revision 182)
windows/gui/xc3sprog/javr.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: windows/gui/xc3sprog/jedecparse.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: windows/gui/xc3sprog/jedecparse.exe =================================================================== --- windows/gui/xc3sprog/jedecparse.exe (nonexistent) +++ windows/gui/xc3sprog/jedecparse.exe (revision 182)
windows/gui/xc3sprog/jedecparse.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: windows/gui/xc3sprog/avrfuseparse.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: windows/gui/xc3sprog/avrfuseparse.exe =================================================================== --- windows/gui/xc3sprog/avrfuseparse.exe (nonexistent) +++ windows/gui/xc3sprog/avrfuseparse.exe (revision 182)
windows/gui/xc3sprog/avrfuseparse.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: windows/gui/xc3sprog/srecparse.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: windows/gui/xc3sprog/srecparse.exe =================================================================== --- windows/gui/xc3sprog/srecparse.exe (nonexistent) +++ windows/gui/xc3sprog/srecparse.exe (revision 182)
windows/gui/xc3sprog/srecparse.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: windows/gui/xc3sprog/xc2c_warp.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: windows/gui/xc3sprog/xc2c_warp.exe =================================================================== --- windows/gui/xc3sprog/xc2c_warp.exe (nonexistent) +++ windows/gui/xc3sprog/xc2c_warp.exe (revision 182)
windows/gui/xc3sprog/xc2c_warp.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: windows/gui/xc3sprog/xc3sprog.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: windows/gui/xc3sprog/xc3sprog.exe =================================================================== --- windows/gui/xc3sprog/xc3sprog.exe (nonexistent) +++ windows/gui/xc3sprog/xc3sprog.exe (revision 182)
windows/gui/xc3sprog/xc3sprog.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: windows/gui/xc3sprog/bitparse.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: windows/gui/xc3sprog/bitparse.exe =================================================================== --- windows/gui/xc3sprog/bitparse.exe (nonexistent) +++ windows/gui/xc3sprog/bitparse.exe (revision 182)
windows/gui/xc3sprog/bitparse.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: windows/gui/xc3sprog/detectchain.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: windows/gui/xc3sprog/detectchain.exe =================================================================== --- windows/gui/xc3sprog/detectchain.exe (nonexistent) +++ windows/gui/xc3sprog/detectchain.exe (revision 182)
windows/gui/xc3sprog/detectchain.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: windows/gui/xc3sprog/readdna.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: windows/gui/xc3sprog/readdna.exe =================================================================== --- windows/gui/xc3sprog/readdna.exe (nonexistent) +++ windows/gui/xc3sprog/readdna.exe (revision 182)
windows/gui/xc3sprog/readdna.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: windows/gui/nis/readme.txt =================================================================== --- windows/gui/nis/readme.txt (nonexistent) +++ windows/gui/nis/readme.txt (revision 182) @@ -0,0 +1,6 @@ +En la seccion Section -Post + +agregar: + ExecWait '$INSTDIR\redist\vcredist_x86.exe /q' + +para instalar las librerias extras \ No newline at end of file Index: windows/gui/nis/for_installer.nsi =================================================================== --- windows/gui/nis/for_installer.nsi (nonexistent) +++ windows/gui/nis/for_installer.nsi (revision 182) @@ -0,0 +1,170 @@ +; Script generated by the HM NIS Edit Script Wizard. + +; HM NIS Edit Wizard helper defines +!define PRODUCT_NAME "PHR GUI" +!define PRODUCT_VERSION "0.1" +!define PRODUCT_PUBLISHER "CUDAR (UTN-FRC)" +!define PRODUCT_WEB_SITE "http://opencores.org/project,phr" +!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\phr-gui.exe" +!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" +!define PRODUCT_UNINST_ROOT_KEY "HKLM" + +; MUI 1.67 compatible ------ +!include "MUI.nsh" + +; MUI Settings +!define MUI_ABORTWARNING +!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico" +!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico" + +; Welcome page +!insertmacro MUI_PAGE_WELCOME +; Directory page +!insertmacro MUI_PAGE_DIRECTORY +; Instfiles page +!insertmacro MUI_PAGE_INSTFILES +; Finish page +!define MUI_FINISHPAGE_RUN "$INSTDIR\phr-gui.exe" +!insertmacro MUI_PAGE_FINISH + +; Uninstaller pages +!insertmacro MUI_UNPAGE_INSTFILES + +; Language files +!insertmacro MUI_LANGUAGE "Spanish" + +; MUI end ------ + +Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" +OutFile "phr-gui_instalar.exe" +InstallDir "$PROGRAMFILES\PHR GUI" +InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" "" +ShowInstDetails show +ShowUnInstDetails show + +Section "Principal" SEC01 + SetOutPath "$INSTDIR" + SetOverwrite try + File "C:\Me\gui\windows\dist\bz2.pyd" + SetOutPath "$INSTDIR\ejemplos" + File "C:\Me\gui\windows\dist\ejemplos\test.bit" + SetOutPath "$INSTDIR\grafica" + File "C:\Me\gui\windows\dist\grafica\banner.jpg" + File "C:\Me\gui\windows\dist\grafica\phr-gui-96.png" + File "C:\Me\gui\windows\dist\grafica\phr-gui.ico" + SetOutPath "$INSTDIR" + File "C:\Me\gui\windows\dist\library.zip" + File "C:\Me\gui\windows\dist\phr-gui.exe" + CreateDirectory "$SMPROGRAMS\PHR GUI" + CreateShortCut "$SMPROGRAMS\PHR GUI\PHR GUI.lnk" "$INSTDIR\phr-gui.exe" + CreateShortCut "$DESKTOP\PHR GUI.lnk" "$INSTDIR\phr-gui.exe" + File "C:\Me\gui\windows\dist\python27.dll" + SetOutPath "$INSTDIR\redist" + File "C:\Me\gui\windows\dist\redist\vcredist_x86.exe" + SetOutPath "$INSTDIR" + File "C:\Me\gui\windows\dist\select.pyd" + File "C:\Me\gui\windows\dist\unicodedata.pyd" + File "C:\Me\gui\windows\dist\wx._controls_.pyd" + File "C:\Me\gui\windows\dist\wx._core_.pyd" + File "C:\Me\gui\windows\dist\wx._gdi_.pyd" + File "C:\Me\gui\windows\dist\wx._misc_.pyd" + File "C:\Me\gui\windows\dist\wx._windows_.pyd" + File "C:\Me\gui\windows\dist\wxbase30u_net_vc90.dll" + File "C:\Me\gui\windows\dist\wxbase30u_vc90.dll" + File "C:\Me\gui\windows\dist\wxmsw30u_adv_vc90.dll" + File "C:\Me\gui\windows\dist\wxmsw30u_core_vc90.dll" + File "C:\Me\gui\windows\dist\wxmsw30u_html_vc90.dll" + SetOutPath "$INSTDIR\xc3sprog" + File "C:\Me\gui\windows\dist\xc3sprog\avrfuseparse.exe" + File "C:\Me\gui\windows\dist\xc3sprog\bitparse.exe" + File "C:\Me\gui\windows\dist\xc3sprog\detectchain.exe" + File "C:\Me\gui\windows\dist\xc3sprog\javr.exe" + File "C:\Me\gui\windows\dist\xc3sprog\jedecparse.exe" + File "C:\Me\gui\windows\dist\xc3sprog\readdna.exe" + File "C:\Me\gui\windows\dist\xc3sprog\srecparse.exe" + File "C:\Me\gui\windows\dist\xc3sprog\xc2c_warp.exe" + File "C:\Me\gui\windows\dist\xc3sprog\xc3sprog.exe" + SetOutPath "$INSTDIR" + File "C:\Me\gui\windows\dist\_hashlib.pyd" +SectionEnd + +Section -AdditionalIcons + WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}" + CreateShortCut "$SMPROGRAMS\PHR GUI\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url" + CreateShortCut "$SMPROGRAMS\PHR GUI\Uninstall.lnk" "$INSTDIR\uninst.exe" +SectionEnd + +Section -Post + ExecWait '$INSTDIR\redist\vcredist_x86.exe /q' + WriteUninstaller "$INSTDIR\uninst.exe" + WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\phr-gui.exe" + WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)" + WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe" + WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\phr-gui.exe" + WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}" + WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}" + WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}" +SectionEnd + + +Function un.onUninstSuccess + HideWindow + MessageBox MB_ICONINFORMATION|MB_OK "La desinstalación de $(^Name) finalizó satisfactoriamente." +FunctionEnd + +Function un.onInit + MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "¿Está completamente seguro que desea desinstalar $(^Name) junto con todos sus componentes?" IDYES +2 + Abort +FunctionEnd + +Section Uninstall + Delete "$INSTDIR\${PRODUCT_NAME}.url" + Delete "$INSTDIR\uninst.exe" + Delete "$INSTDIR\_hashlib.pyd" + Delete "$INSTDIR\xc3sprog\xc3sprog.exe" + Delete "$INSTDIR\xc3sprog\xc2c_warp.exe" + Delete "$INSTDIR\xc3sprog\srecparse.exe" + Delete "$INSTDIR\xc3sprog\readdna.exe" + Delete "$INSTDIR\xc3sprog\jedecparse.exe" + Delete "$INSTDIR\xc3sprog\javr.exe" + Delete "$INSTDIR\xc3sprog\detectchain.exe" + Delete "$INSTDIR\xc3sprog\bitparse.exe" + Delete "$INSTDIR\xc3sprog\avrfuseparse.exe" + Delete "$INSTDIR\wxmsw30u_html_vc90.dll" + Delete "$INSTDIR\wxmsw30u_core_vc90.dll" + Delete "$INSTDIR\wxmsw30u_adv_vc90.dll" + Delete "$INSTDIR\wxbase30u_vc90.dll" + Delete "$INSTDIR\wxbase30u_net_vc90.dll" + Delete "$INSTDIR\wx._windows_.pyd" + Delete "$INSTDIR\wx._misc_.pyd" + Delete "$INSTDIR\wx._gdi_.pyd" + Delete "$INSTDIR\wx._core_.pyd" + Delete "$INSTDIR\wx._controls_.pyd" + Delete "$INSTDIR\unicodedata.pyd" + Delete "$INSTDIR\select.pyd" + Delete "$INSTDIR\redist\vcredist_x86.exe" + Delete "$INSTDIR\python27.dll" + Delete "$INSTDIR\phr-gui.exe" + Delete "$INSTDIR\library.zip" + Delete "$INSTDIR\grafica\phr-gui.ico" + Delete "$INSTDIR\grafica\phr-gui-96.png" + Delete "$INSTDIR\grafica\banner.jpg" + Delete "$INSTDIR\ejemplos\test.bit" + Delete "$INSTDIR\bz2.pyd" + + Delete "$SMPROGRAMS\PHR GUI\Uninstall.lnk" + Delete "$SMPROGRAMS\PHR GUI\Website.lnk" + Delete "$DESKTOP\PHR GUI.lnk" + Delete "$SMPROGRAMS\PHR GUI\PHR GUI.lnk" + + RMDir "$SMPROGRAMS\PHR GUI" + RMDir "$INSTDIR\xc3sprog" + RMDir "$INSTDIR\redist" + RMDir "$INSTDIR\grafica" + RMDir "$INSTDIR\ejemplos" + RMDir "$INSTDIR" + + DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" + DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}" + SetAutoClose true +SectionEnd \ No newline at end of file Index: windows/gui/redist/vcredist_x86.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: windows/gui/redist/vcredist_x86.exe =================================================================== --- windows/gui/redist/vcredist_x86.exe (nonexistent) +++ windows/gui/redist/vcredist_x86.exe (revision 182)
windows/gui/redist/vcredist_x86.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: windows/gui/readme.txt =================================================================== --- windows/gui/readme.txt (nonexistent) +++ windows/gui/readme.txt (revision 182) @@ -0,0 +1,5 @@ +para compilar ejecutar desde cmd: + +python setup.py py2exe + +esto crea el directorio dist para distribucion Index: windows/gui/grafica/phr-gui.ico =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: windows/gui/grafica/phr-gui.ico =================================================================== --- windows/gui/grafica/phr-gui.ico (nonexistent) +++ windows/gui/grafica/phr-gui.ico (revision 182)
windows/gui/grafica/phr-gui.ico Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: windows/gui/grafica/banner.jpg =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: windows/gui/grafica/banner.jpg =================================================================== --- windows/gui/grafica/banner.jpg (nonexistent) +++ windows/gui/grafica/banner.jpg (revision 182)
windows/gui/grafica/banner.jpg Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: windows/gui/grafica/phr-gui-96.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: windows/gui/grafica/phr-gui-96.png =================================================================== --- windows/gui/grafica/phr-gui-96.png (nonexistent) +++ windows/gui/grafica/phr-gui-96.png (revision 182)
windows/gui/grafica/phr-gui-96.png Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: windows/gui/ejemplos/test.bit =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: windows/gui/ejemplos/test.bit =================================================================== --- windows/gui/ejemplos/test.bit (nonexistent) +++ windows/gui/ejemplos/test.bit (revision 182)
windows/gui/ejemplos/test.bit Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: grafica/banner/banner.svg =================================================================== --- grafica/banner/banner.svg (nonexistent) +++ grafica/banner/banner.svg (revision 182) @@ -0,0 +1,366 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + CUDAR + UTN-FRC + + Index: grafica/banner/banner.jpg =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: grafica/banner/banner.jpg =================================================================== --- grafica/banner/banner.jpg (nonexistent) +++ grafica/banner/banner.jpg (revision 182)
grafica/banner/banner.jpg Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: grafica/banner/banner.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: grafica/banner/banner.png =================================================================== --- grafica/banner/banner.png (nonexistent) +++ grafica/banner/banner.png (revision 182)
grafica/banner/banner.png Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: grafica/banner/baw.jpg =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: grafica/banner/baw.jpg =================================================================== --- grafica/banner/baw.jpg (nonexistent) +++ grafica/banner/baw.jpg (revision 182)
grafica/banner/baw.jpg Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: grafica/iconos/phr-gui.ico =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: grafica/iconos/phr-gui.ico =================================================================== --- grafica/iconos/phr-gui.ico (nonexistent) +++ grafica/iconos/phr-gui.ico (revision 182)
grafica/iconos/phr-gui.ico Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: grafica/iconos/phr-gui-128.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: grafica/iconos/phr-gui-128.png =================================================================== --- grafica/iconos/phr-gui-128.png (nonexistent) +++ grafica/iconos/phr-gui-128.png (revision 182)
grafica/iconos/phr-gui-128.png Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: grafica/iconos/phr-gui-ico.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: grafica/iconos/phr-gui-ico.png =================================================================== --- grafica/iconos/phr-gui-ico.png (nonexistent) +++ grafica/iconos/phr-gui-ico.png (revision 182)
grafica/iconos/phr-gui-ico.png Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: grafica/iconos/phr-gui-256.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: grafica/iconos/phr-gui-256.png =================================================================== --- grafica/iconos/phr-gui-256.png (nonexistent) +++ grafica/iconos/phr-gui-256.png (revision 182)
grafica/iconos/phr-gui-256.png Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: grafica/iconos/phr-gui.svg =================================================================== --- grafica/iconos/phr-gui.svg (nonexistent) +++ grafica/iconos/phr-gui.svg (revision 182) @@ -0,0 +1,446 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Index: grafica/iconos/phr-gui-96.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: grafica/iconos/phr-gui-96.png =================================================================== --- grafica/iconos/phr-gui-96.png (nonexistent) +++ grafica/iconos/phr-gui-96.png (revision 182)
grafica/iconos/phr-gui-96.png Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: grafica/old/phr.ico =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: grafica/old/phr.ico =================================================================== --- grafica/old/phr.ico (nonexistent) +++ grafica/old/phr.ico (revision 182)
grafica/old/phr.ico Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: grafica/old/phr.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: grafica/old/phr.png =================================================================== --- grafica/old/phr.png (nonexistent) +++ grafica/old/phr.png (revision 182)
grafica/old/phr.png Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.