Buenas Marcelo, y gracias de ante mano por responderme.

No entiendo muy bien tu cambio.
Si me estás diciendo que ponga ese código al final del fichero del fichero
checkDirGUI_v1, lo que estoy haciendo es machacar la definición del Frame
que obtengo del wxFormBuilder por el que tu pones, y aun así no me funciona
desde el interprete de Python.

saludos,


El 9 de febrero de 2014, 13:55, Marcelo Barbero <marcelobarb...@arnet.com.ar
> escribió:

> Para que funcione el programa, tuve que agregar algo así al final del
> archivo checkDirGUI_v1:
>
> class BackupToolFrame(wx.Frame):
>     def __init__( self, parent ):
>         wx.Frame.__init__ ( self, parent)
>
> A mí me funciona bien corriéndolo desde el intérprete de Python 2.7.5. ¿No
> será problema de PyScripter?
>
> Marcelo
>
> ________________________________
>
> De: Python-es
> [mailto:python-es-bounces+marcelobarbero=arnet.com...@python.org] En
> nombre
> de nesto
> Enviado el: domingo 9 de febrero de 2014 08:12
> Para: python-es@python.org
> Asunto: [Python-es] Fwd: Exceptions EOF.Error: [Errno 10054]
>
>
> Hi again. I wil try to send more information about the error.
>
>
> I work with next tools:
>
>
>        PyScripter: v2.7
> wxFormBuilder: v3.4.
>
>
> I have tried to generate this Windows, with two StaticText and two
> DirPickerCtrl:
>
>
>
>
>
> The code generated by wxFormBuilder is:
>
>
> class panelDir ( wx.Panel ):
>
>     def __init__( self, parent ):
>         wx.Panel.__init__ ( self, parent, id = wx.ID_ANY, pos =
> wx.DefaultPosition, size = wx.Size( 500,405 ), style = wx.TAB_TRAVERSAL )
>
>         self.SetBackgroundColour( wx.SystemSettings.GetColour(
> wx.SYS_COLOUR_INACTIVECAPTIONTEXT ) )
>         self.SetMinSize( wx.Size( 300,400 ) )
>
>         bSizer2 = wx.BoxSizer( wx.VERTICAL )
>
>         sizerMaestro = wx.BoxSizer( wx.HORIZONTAL )
>
>         self.maestroText = wx.StaticText( self, wx.ID_ANY, u"Directorio
> Maestro", wx.Point( -1,-1 ), wx.Size( 120,-1 ),
> wx.ALIGN_CENTRE|wx.ST_NO_AUTORESIZE|wx.RAISED_BORDER )
>         self.maestroText.Wrap( -1 )
>         self.maestroText.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(),
> 70, 90, 92, False, wx.EmptyString ) )
>         self.maestroText.SetForegroundColour( wx.SystemSettings.GetColour(
> wx.SYS_COLOUR_HIGHLIGHTTEXT ) )
>         self.maestroText.SetBackgroundColour( wx.SystemSettings.GetColour(
> wx.SYS_COLOUR_HIGHLIGHT ) )
>
>         sizerMaestro.Add( self.maestroText, 0, wx.ALIGN_CENTER|wx.ALL, 5 )
>
>         bSizer9 = wx.BoxSizer( wx.VERTICAL )
>
>         self.m_dirMaestro = wx.DirPickerCtrl( self, wx.ID_ANY,
> wx.EmptyString, u"Select a folder", wx.DefaultPosition, wx.DefaultSize,
> wx.DIRP_DEFAULT_STYLE )
>         bSizer9.Add( self.m_dirMaestro, 0, wx.ALL|wx.EXPAND, 5 )
>
>
>         sizerMaestro.Add( bSizer9, 1, wx.EXPAND, 5 )
>
>
>         bSizer2.Add( sizerMaestro, 0, wx.ALL|wx.EXPAND|wx.SHAPED, 5 )
>
>         sizerDestino = wx.BoxSizer( wx.HORIZONTAL )
>
>         self.destinoText = wx.StaticText( self, wx.ID_ANY, u"Directorio
> Destino", wx.Point( -1,-1 ), wx.Size( 120,-1 ),
> wx.ALIGN_CENTRE|wx.ALIGN_RIGHT|wx.ST_NO_AUTORESIZE|wx.RAISED_BORDER )
>         self.destinoText.Wrap( -1 )
>         self.destinoText.SetFont( wx.Font( wx.NORMAL_FONT.GetPointSize(),
> 70, 90, 92, False, wx.EmptyString ) )
>         self.destinoText.SetForegroundColour( wx.SystemSettings.GetColour(
> wx.SYS_COLOUR_HIGHLIGHTTEXT ) )
>         self.destinoText.SetBackgroundColour( wx.SystemSettings.GetColour(
> wx.SYS_COLOUR_HIGHLIGHT ) )
>
>         sizerDestino.Add( self.destinoText, 0, wx.ALIGN_CENTER|wx.ALL, 5 )
>
>         bSizer10 = wx.BoxSizer( wx.VERTICAL )
>
>         self.m_dirDestino = wx.DirPickerCtrl( self, wx.ID_ANY,
> wx.EmptyString, u"Select a folder", wx.DefaultPosition, wx.DefaultSize,
> wx.DIRP_DEFAULT_STYLE )
>         bSizer10.Add( self.m_dirDestino, 0, wx.ALL|wx.EXPAND, 5 )
>
>
>         sizerDestino.Add( bSizer10, 1, wx.EXPAND, 5 )
>
>
>         bSizer2.Add( sizerDestino, 0, wx.ALL|wx.EXPAND|wx.SHAPED, 5 )
>
>         sizerResultado = wx.BoxSizer( wx.VERTICAL )
>
>         self.resultadoText = wx.TextCtrl( self, wx.ID_ANY, u"",
> wx.DefaultPosition, wx.Size( -1,-1 ),
> wx.HSCROLL|wx.TE_MULTILINE|wx.RAISED_BORDER )
>         sizerResultado.Add( self.resultadoText, 0, wx.ALL|wx.EXPAND, 5 )
>
>
>         bSizer2.Add( sizerResultado, 3, wx.ALL|wx.EXPAND, 5 )
>
>
>         self.SetSizer( bSizer2 )
>         self.Layout()
>
>     def __del__( self ):
>         pass
>
>
> And the code I wrote to run this program this (very simple):
>
>
> import wx
> from checkDirGUI_v1 import BackupToolFrame, panelDir
>
> ###########################################################################
> ## Class BackupToolFrame
> ###########################################################################
>
> class dirCheckPanel ( panelDir ):
>     def checkDir( self, event ):
>         print "hola"
>
> class dirCheckFrame ( BackupToolFrame ):
>     def __init__( self, parent ):
>         BackupToolFrame.__init__ ( self, parent )
>
>         self.panel = dirCheckPanel( self )
>
> class BackupToolApp(wx.App):
>     def OnInit(self):
>         ventana = dirCheckFrame(None)
>         ventana.Show(True)
>         return True
>
> app = BackupToolApp()
> print app.__class__
> app.MainLoop()
>
>
>
>
> The traceback I get is that:
>
>
> *** Remote Interpreter Reinitialized  ***
> >>>
> Traceback (most recent call last):
>   File "<string>", line 73, in execInThread
>   File "C:\Archivos de
> programa\PyScripter\Lib\rpyc.zip\rpyc\core\netref.py", line 196, in
> __call__
>   File "C:\Archivos de
> programa\PyScripter\Lib\rpyc.zip\rpyc\core\netref.py", line 71, in syncreq
>   File "C:\Archivos de
> programa\PyScripter\Lib\rpyc.zip\rpyc\core\protocol.py", line 431, in
> sync_request
>   File "C:\Archivos de
> programa\PyScripter\Lib\rpyc.zip\rpyc\core\protocol.py", line 379, in serve
>   File "C:\Archivos de
> programa\PyScripter\Lib\rpyc.zip\rpyc\core\protocol.py", line 337, in _recv
>   File "C:\Archivos de
> programa\PyScripter\Lib\rpyc.zip\rpyc\core\channel.py", line 50, in recv
>   File "C:\Archivos de
> programa\PyScripter\Lib\rpyc.zip\rpyc\core\stream.py", line 166, in read
> EOFError: [Errno 10054] Se ha forzado la interrupción de una conexión
> existente por el host remoto
> >>>
> *** Remote Interpreter Reinitialized  ***
> >>>
>
>
> And this is a screenshot  about error:
>
>
>
>
>
> And this is the message I get in PyScripter:
>
>
>
>
> If I change dirPickerCtrl for two textCtrl the program work. That is the
> reason that I think the problem is the dirPickerCtrl
>
>
> If somebody need more information, please let me know it.
>
>
> Thanks.
>
>
> Regards,
>
>
>
> ---------- Mensaje reenviado ----------
> De: nesto <nestor...@gmail.com>
> Fecha: 5 de febrero de 2014, 9:58
> Asunto: Exceptions EOF.Error: [Errno 10054]
> Para: python-es@python.org
>
>
>
>
> Buenos días.
>
>
> Soy nuevo en Python, no llevo ni dos semanas leyendo manuales de Python e
> intentando realizar un pequeño programita. Empecé con uno que se ejecutaba
> en la linea de comandos y me ha gustado tanto que ya estoy metido de lleno
> en programación gráfica.
>
>
> Me he encontrado con el siguiente error:
>
> exceptions.EOFError: [Errno 10054] Se ha forzado la interrupción de una
> conexión existente por el host remoto
>
>
> El problema solo me pasa cuando meto un objeto wxDirPickerCtrl, que
> simplemente me saca una caja de texto y un botón para poder seleccionar un
> directorio.
>
> Si quito este objeto y le pongo uno tipo texto, por ejmplo, ya no me sale
> el
> error.
>
> He intentado mirar por internet, pero casi todo lo que me sale con este
> error es referido a FTP o con otros lenguajes que no son Python, y la
> explicación que da no me cuadra mucho con lo que yo estoy utilizando.
>
>
> ¿Alguno sabría porqué puede dar este error? ¿será que el objeto
> DirPickerCtrl requiere alguna configuración especial?
>
>
> Solo decir que para generar las ventanas estoy utilizando la aplicación
> wxFormBuilder, por si es este el problema.
>
>
> De antemano muchas gracias.
>
> saludos,
>
>
> --
>
>                         .- NestoRock -.
>
>
>
> --
>
>                         .- NestoRock -.
>
> _______________________________________________
> Python-es mailing list
> Python-es@python.org
> https://mail.python.org/mailman/listinfo/python-es
> FAQ: http://python-es-faq.wikidot.com/
>



-- 

                        .- NestoRock -.
_______________________________________________
Python-es mailing list
Python-es@python.org
https://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/

Responder a