Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/10/2011, 11:47
pyton
 
Fecha de Ingreso: octubre-2011
Mensajes: 11
Antigüedad: 12 años, 7 meses
Puntos: 0
Respuesta: Varios Frames (boa)

Gracias por la recomendación, no se pq es mejor sin el editor si ya te genera el código, llevo tiempo con python con ide en consola pero estoy aprendiendo boa.

Te pondo el código a ver si me puedes ayudar..

Código:
import wx

def create(parent):
    return Frame1(parent)

[wxID_FRAME1, wxID_FRAME1BUTTON1, wxID_FRAME1PANEL1, 
] = [wx.NewId() for _init_ctrls in range(3)]

class Frame1(wx.Frame):
    def _init_ctrls(self, prnt):
        wx.Frame.__init__(self, id=wxID_FRAME1, name='', parent=prnt,
              pos=wx.Point(365, 327), size=wx.Size(853, 616),
              style=wx.DEFAULT_FRAME_STYLE, title='Frame1')
        self.SetClientSize(wx.Size(853, 616))

        self.panel1 = wx.Panel(id=wxID_FRAME1PANEL1, name='panel1', parent=self,
              pos=wx.Point(0, 0), size=wx.Size(853, 616),
              style=wx.TAB_TRAVERSAL)

        self.button1 = wx.Button(id=wxID_FRAME1BUTTON1, label='button1',
              name='button1', parent=self.panel1, pos=wx.Point(176, 80),
              size=wx.Size(85, 29), style=0)
        self.button1.Bind(wx.EVT_BUTTON, self.OnButton1Button,
              id=wxID_FRAME1BUTTON1)

    def __init__(self, parent):
        self._init_ctrls(parent)

    def OnButton1Button(self, event):
        import Frame2
        Frame2.Show(True) #Aqui!! pero asi no vale.... tampoco llamandolo
        event.Skip()
Donde el comentario intento que aparezca el frame pero así no vale y tampoco llamándolo, solo necesito saber como lo invoco...

Última edición por pyton; 07/10/2011 a las 11:54