[pyar] Consulta WxPython
Marcelo Martinovic
marcelo.martinovic en gmail.com
Lun Nov 5 22:39:26 ART 2012
Buenas gente.
Tengo el siguiente código:
# -*- coding: utf-8 *-*
#logic by itself in module
__prj__ = 'UsuariosConfig'
__version__ = ''
__license__ = 'GNU General Public License v3'
__author__ = 'Marcelo Martinovic'
__email__ = 'marcelo.martinovic en gmail.com'
__url__ = ''
__date__ = '2012/10/24'
from wx import *
import wx.grid
import wx.xrc
class PanelsTest(wx.App):
"""
Clase
"""
def OnInit(self):
'''
Construnctor y carga de archivo xrc
@param accion: Setea la accion de trabajo, Nuevo, Edicion
@type string:
@return: void
'''
self.res = xrc.XmlResource('mainTest.xrc')
self.init_frame()
return True
def init_frame(self):
'''
Asignacion de widget a variables locales y
tratamiento
@return: void
'''
self.frame = self.res.LoadFrame(None, 'MyFrame1')
self.panel1 = xrc.XRCCTRL(self.frame, 'm_panel1')
self.panel2 = xrc.XRCCTRL(self.frame, 'm_panel2')
self.panel3 = xrc.XRCCTRL(self.frame, 'm_panel3')
self.panel2.Hide()
self.frame.Show()
if __name__ == '__main__':
app = PanelsTest()
app.MainLoop()
En linux funciona excelente, oculta el panel2 como debe ser pero en
windows pasa que no oculta y lo muestra como si nunca le hubiera dado la
orden... ideas o soluciones?
--
Marcelo Eduardo Martinovic
CEL Phone: +54 911 66 64 21 36
e-mail: marcelo.martinovic en gmail.com
Google+: 106978951747415470563
Skype: programacionlinux
Linux User #191067 Debian user #210 The Ubuntu Counter Project - user number # 33724
More information about the pyar
mailing list