Foros del Web » Programando para Internet » Python »

no puedo hacer un staticbox

Estas en el tema de no puedo hacer un staticbox en el foro de Python en Foros del Web. hola nececito ayuda con esto no quedea el panel en el staticbox como la hago class box(wx.Panel): def __init__(self, parent, id): wx.Panel.__init__(self, parent, id) bitm ...
  #1 (permalink)  
Antiguo 24/03/2009, 16:04
 
Fecha de Ingreso: mayo-2008
Mensajes: 499
Antigüedad: 15 años, 11 meses
Puntos: 1
no puedo hacer un staticbox

hola nececito ayuda con esto no quedea el panel en el staticbox como la hago


class box(wx.Panel):
def __init__(self, parent, id):
wx.Panel.__init__(self, parent, id)

bitm = wx.StaticBitmap(self, -1, wx.Bitmap("start.png", wx.BITMAP_TYPE_ANY))


self.text = wx.Panel(self, -1)
self.text.SetBackgroundColour("#FF8C00")

stb = wx.StaticBox(self.text, -1, "Nuevo", pos=(23, 65))
boc = wx.StaticBoxSizer(stb, wx.VERTICAL)
bot = wx.Panel(self.text, -1)
bot.SetBackgroundColour('red')
boc.Add(bot, 0, wx.ALL, 2)

bo = wx.BoxSizer()
bo.Add(bitm, 0, wx.EXPAND)

vox = wx.BoxSizer(wx.VERTICAL)
vox.Add(bo, 0, wx.EXPAND)
vox.Add(self.text, 1, wx.EXPAND)
self.SetSizer(vox)
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 06:53.