SlideShare uma empresa Scribd logo
1 de 18
Baixar para ler offline
File: /home/pubuntu/wxInterfaz.py                                             Page 1 of 18

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# generated by wxGlade 0.6.3 on Wed Dec 16 06:32:12 2009

import wx
import wx.grid

# begin wxGlade: extracode
# end wxGlade



class wxIngresarSistema(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxIngresarSistema.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        #Declarando variables
        self.lblUsuario = wx.StaticText(self, -1, "Usuario:")
        self.txtUsuario = wx.TextCtrl(self, -1, "")
        self.lblPassword = wx.StaticText(self, -1, "Password:")
        self.txtPassword = wx.TextCtrl(self, -1, "")
        self.btnAceptar = wx.Button(self, -1, "Entrar")

        self.__set_properties()
        self.__do_layout()
        # end wxGlade

        #Propiedades del frame
    def __set_properties(self):
        # begin wxGlade: wxIngresarSistema.__set_properties
        self.SetTitle("Login")
        # end wxGlade

        #Agregar controles al frame
    def __do_layout(self):
        # begin wxGlade: wxIngresarSistema.__do_layout
        sizer_39 = wx.BoxSizer(wx.VERTICAL)
        grid_sizer_16 = wx.GridSizer(3, 2, 0, 0)
        grid_sizer_16.Add(self.lblUsuario, 0, 0, 0)
        grid_sizer_16.Add(self.txtUsuario, 0, 0, 0)
        grid_sizer_16.Add(self.lblPassword, 0, 0, 0)
        grid_sizer_16.Add(self.txtPassword, 0, 0, 0)
        grid_sizer_16.Add(self.btnAceptar, 0, wx.ALIGN_RIGHT, 0)
        sizer_39.Add(grid_sizer_16, 1, wx.EXPAND, 0)
        self.SetSizer(sizer_39)
        sizer_39.Fit(self)
        self.Layout()
        # end wxGlade

# end of class wxIngresarSistema


class wxAltaPoliza(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxAltaPoliza.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        #Variables
        self.lblNumeroPoliza = wx.StaticText(self, -1, "Numero de Poliza:")
        self.txtNumeroPoliza = wx.TextCtrl(self, -1, "")
        self.lblCliente = wx.StaticText(self, -1, "Cliente:")
        #Establecer Textboxs con propiedad Readonly
        self.txtNumero = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY)
        self.txtNombre = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY)
        #Establecer texto del botón
        self.btnBuscar = wx.Button(self, -1, "Buscar")
File: /home/pubuntu/wxInterfaz.py                                                       Page 2 of 18

       self.lblCompania = wx.StaticText(self, -1, "Compania:n")
       self.cmbCompania = wx.ComboBox(self, -1, choices=[], style=wx.CB_DROPDOWN)
       self.lblTipoPoliza = wx.StaticText(self, -1, "Tipo Poliza:")
       self.cmbTipoPoliza = wx.ComboBox(self, -1, choices=[], style=wx.CB_DROPDOWN)
       self.lblFechaInicio = wx.StaticText(self, -1, "Fecha Inicio:")
       self.txtFechaInicio = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY)
       self.btnCalendario = wx.Button(self, -1, "Calendario")
       self.lblFechaFin = wx.StaticText(self, -1, "Fecha Fin:")
       self.text_ctrl_1 = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY|wx.TE_RICH2)
       self.btnCalendario2 = wx.Button(self, -1, "Calendario")
       self.lblPrecio = wx.StaticText(self, -1, "Precio:")
       self.txtPrecio = wx.TextCtrl(self, -1, "")
       self.lblFormaPAgo = wx.StaticText(self, -1, "Forma Pago:n")
       self.cmbFormaPago = wx.ComboBox(self, -1, choices=[], style=wx.CB_DROPDOWN)
       self.lblCobertura = wx.StaticText(self, -1, "Cobertura:")
       self.cmbCobertura = wx.ComboBox(self, -1, choices=[], style=wx.CB_DROPDOWN)
       self.lblPolizaAnterior = wx.StaticText(self, -1, "Numero de Poliza Anterior:")
       self.txtNumeroPolizaAnterior = wx.TextCtrl(self, -1, "")
       self.btnbuscar2 = wx.Button(self, -1, "Buscar")
       self.lblBeneficiario = wx.StaticText(self, -1, "Beneficiario:")
       self.cmbBeneficiario = wx.ComboBox(self, -1, choices=[], style=wx.CB_DROPDOWN)
       self.btnBuscar3 = wx.Button(self, -1, "Buscar")
       self.btnAceptar = wx.Button(self, -1, "Aceptar")
       self.button_1 = wx.Button(self, -1, "Cancelar")

       self.__set_properties()
       self.__do_layout()
       # end wxGlade

       #Propiedades del frame
   def __set_properties(self):
       # begin wxGlade: wxAltaPoliza.__set_properties
       self.SetTitle("Alta Poliza")
       #Tamaño del Frame
       self.txtNombre.SetMinSize((140, 27))
       # end wxGlade

   def __do_layout(self):
       # begin wxGlade: wxAltaPoliza.__do_layout
       sizer_1 = wx.BoxSizer(wx.VERTICAL)
       sizer_13 = wx.BoxSizer(wx.HORIZONTAL)
       sizer_12 = wx.BoxSizer(wx.HORIZONTAL)
       sizer_11 = wx.BoxSizer(wx.HORIZONTAL)
       sizer_10 = wx.BoxSizer(wx.HORIZONTAL)
       sizer_9 = wx.BoxSizer(wx.HORIZONTAL)
       sizer_8 = wx.BoxSizer(wx.HORIZONTAL)
       sizer_7 = wx.BoxSizer(wx.HORIZONTAL)
       sizer_6 = wx.BoxSizer(wx.HORIZONTAL)
       sizer_5 = wx.BoxSizer(wx.HORIZONTAL)
       sizer_4 = wx.BoxSizer(wx.HORIZONTAL)
       sizer_3 = wx.BoxSizer(wx.HORIZONTAL)
       sizer_2 = wx.BoxSizer(wx.HORIZONTAL)
       #Agregar elementos a los BoxSizer
       sizer_2.Add(self.lblNumeroPoliza, 0, wx.LEFT, 0)
       sizer_2.Add(self.txtNumeroPoliza, 0, 0, 0)
       sizer_1.Add(sizer_2, 1, wx.EXPAND, 0)
       sizer_3.Add(self.lblCliente, 0, wx.LEFT, 0)
       sizer_3.Add(self.txtNumero, 0, 0, 0)
       sizer_3.Add(self.txtNombre, 0, 0, 0)
       sizer_3.Add(self.btnBuscar, 0, 0, 0)
       sizer_1.Add(sizer_3, 1, wx.EXPAND, 0)
       sizer_4.Add(self.lblCompania, 0, 0, 0)
       sizer_4.Add(self.cmbCompania, 0, 0, 0)
       sizer_1.Add(sizer_4, 1, wx.EXPAND, 0)
       sizer_5.Add(self.lblTipoPoliza, 0, 0, 0)
       sizer_5.Add(self.cmbTipoPoliza, 0, 0, 0)
       sizer_1.Add(sizer_5, 1, wx.EXPAND, 0)
File: /home/pubuntu/wxInterfaz.py                                    Page 3 of 18

       sizer_6.Add(self.lblFechaInicio, 0, 0, 0)
       sizer_6.Add(self.txtFechaInicio, 0, 0, 0)
       sizer_6.Add(self.btnCalendario, 0, 0, 0)
       sizer_1.Add(sizer_6, 1, wx.EXPAND, 0)
       sizer_7.Add(self.lblFechaFin, 0, 0, 0)
       sizer_7.Add(self.text_ctrl_1, 0, 0, 0)
       sizer_7.Add(self.btnCalendario2, 0, 0, 0)
       sizer_1.Add(sizer_7, 1, wx.EXPAND, 0)
       sizer_8.Add(self.lblPrecio, 0, 0, 0)
       sizer_8.Add(self.txtPrecio, 0, 0, 0)
       sizer_1.Add(sizer_8, 1, wx.EXPAND, 0)
       sizer_9.Add(self.lblFormaPAgo, 0, 0, 0)
       sizer_9.Add(self.cmbFormaPago, 0, 0, 0)
       sizer_1.Add(sizer_9, 1, wx.EXPAND, 0)
       sizer_10.Add(self.lblCobertura, 0, 0, 0)
       sizer_10.Add(self.cmbCobertura, 0, 0, 0)
       sizer_1.Add(sizer_10, 1, wx.EXPAND, 0)
       sizer_11.Add(self.lblPolizaAnterior, 0, 0, 0)
       sizer_11.Add(self.txtNumeroPolizaAnterior, 0, 0, 0)
       sizer_11.Add(self.btnbuscar2, 0, 0, 0)
       sizer_1.Add(sizer_11, 1, wx.EXPAND, 0)
       sizer_12.Add(self.lblBeneficiario, 0, 0, 0)
       sizer_12.Add(self.cmbBeneficiario, 0, 0, 0)
       sizer_12.Add(self.btnBuscar3, 0, 0, 0)
       sizer_1.Add(sizer_12, 1, wx.EXPAND, 0)
       sizer_13.Add((80, 20), 0, 0, 0)
       sizer_13.Add(self.btnAceptar, 0, 0, 0)
       sizer_13.Add(self.button_1, 0, 0, 0)
       sizer_13.Add((80, 20), 0, 0, 0)
       sizer_1.Add(sizer_13, 1, wx.EXPAND, 0)
       self.SetSizer(sizer_1)
       sizer_1.Fit(self)
       self.Layout()
       # end wxGlade

# end of class wxAltaPoliza


class wxListaUsuarios(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxListaUsuarios.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        self.btnAltaUsuario = wx.Button(self, -1, "Nuevo Usuario")
        self.grdUsuarios = wx.grid.Grid(self, -1, size=(1, 1))

        self.__set_properties()
        self.__do_layout()
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: wxListaUsuarios.__set_properties
        self.SetTitle("Lista Usuarios")
        self.grdUsuarios.CreateGrid(10, 6)
        #Agregar elementos al Grid
        self.grdUsuarios.SetColLabelValue(0, "Username")
        self.grdUsuarios.SetColLabelValue(1, "Nombres")
        self.grdUsuarios.SetColLabelValue(2, "Apellido Paterno")
        self.grdUsuarios.SetColLabelValue(3, "Apellido Materno")
        self.grdUsuarios.SetColLabelValue(4, "")
        self.grdUsuarios.SetColLabelValue(5, "")
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: wxListaUsuarios.__do_layout
        sizer_14 = wx.BoxSizer(wx.VERTICAL)
        sizer_15 = wx.BoxSizer(wx.HORIZONTAL)
File: /home/pubuntu/wxInterfaz.py                                                           Page 4 of 18

       #Coordenadas del BoxSizer
       sizer_15.Add((70, 20), 0, 0, 0)
       #Alinear elementos del boxsizer
       sizer_15.Add(self.btnAltaUsuario, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 0)
       sizer_15.Add((70, 20), 0, 0, 0)
       sizer_14.Add(sizer_15, 1, wx.EXPAND, 0)
       sizer_14.Add(self.grdUsuarios, 1, wx.EXPAND, 0)
       self.SetSizer(sizer_14)
       sizer_14.Fit(self)
       self.Layout()
       # end wxGlade

# end of class wxListaUsuarios


class mnuCatalogos(wx.MenuBar):
    def __init__(self, *args, **kwds):
        # begin wxGlade: mnuCatalogos.__init__
        wx.MenuBar.__init__(self, *args, **kwds)
        #Agregar opciones al menú
        self.lblAgente = wx.Menu()
        self.Append(self.lblAgente, "Agente")
        self.lblCompania = wx.Menu()
        self.Append(self.lblCompania, u"Compañía")
        self.lblTipoPoliza = wx.Menu()
        self.Append(self.lblTipoPoliza, "Tipo Poliza")
        self.lblCobertura = wx.Menu()
        self.Append(self.lblCobertura, "Cobertura")
        wxglade_tmp_menu = wx.Menu()
        self.Append(wxglade_tmp_menu, "Ayuda")

        self.__set_properties()
        self.__do_layout()
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: mnuCatalogos.__set_properties
        pass
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: mnuCatalogos.__do_layout
        pass
        # end wxGlade

# end of class mnuCatalogos


class mnuGeneral(wx.MenuBar):
    def __init__(self, *args, **kwds):
        # begin wxGlade: mnuGeneral.__init__
        wx.MenuBar.__init__(self, *args, **kwds)
        #Opciones del menú
        self.lblUsuarios = wx.Menu()
        self.Append(self.lblUsuarios, "Usuarios")
        self.lblAyuda = wx.Menu()
        self.Append(self.lblAyuda, "Ayuda")

        self.__set_properties()
        self.__do_layout()
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: mnuGeneral.__set_properties
        pass
        # end wxGlade
File: /home/pubuntu/wxInterfaz.py                                                    Page 5 of 18

    def __do_layout(self):
        # begin wxGlade: mnuGeneral.__do_layout
        pass
        # end wxGlade

# end of class mnuGeneral


class mnuPoliza(wx.MenuBar):
    def __init__(self, *args, **kwds):
        # begin wxGlade: mnuPoliza.__init__
        wx.MenuBar.__init__(self, *args, **kwds)
        #Opciones del menú
        self.lblPoliza = wx.Menu()
        self.Append(self.lblPoliza, "Poliza")
        self.lblReportes = wx.Menu()
        self.Append(self.lblReportes, "Reportes")
        self.lblAyuda = wx.Menu()
        self.Append(self.lblAyuda, "Ayuda")

        self.__set_properties()
        self.__do_layout()
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: mnuPoliza.__set_properties
        pass
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: mnuPoliza.__do_layout
        pass
        # end wxGlade

# end of class mnuPoliza


class wxAltaUsuario(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxAltaUsuario.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        self.lblNombre = wx.StaticText(self, -1, "Nombre:")
        self.text_ctrl_2 = wx.TextCtrl(self, -1, "")
        self.lblApellidoPaterno = wx.StaticText(self, -1, "Apellido Paterno:")
        self.text_ctrl_3 = wx.TextCtrl(self, -1, "")
        self.lblApellidoMaterno = wx.StaticText(self, -1, "Apellido Materno:")
        self.text_ctrl_4 = wx.TextCtrl(self, -1, "")
        self.lblRol = wx.StaticText(self, -1, "Rol:")
        #Crear combobox y sus opciones (que en este caso se llenaran de Mysql
        self.combo_box_1 = wx.ComboBox(self, -1, choices=[], style=wx.CB_DROPDOWN)
        self.btnAceptar = wx.Button(self, -1, "Aceptar")
        self.btnCancelar = wx.Button(self, -1, "Cancelar")

        self.__set_properties()
        self.__do_layout()
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: wxAltaUsuario.__set_properties
        self.SetTitle("Alta Usuario")
        #Cambiar Tamaño de los Textboxs
        self.text_ctrl_2.SetMinSize((189, 27))
        self.text_ctrl_3.SetMinSize((189, 27))
        self.text_ctrl_4.SetMinSize((189, 27))
        # end wxGlade
File: /home/pubuntu/wxInterfaz.py                                                            Page 6 of 18

    def __do_layout(self):
        # begin wxGlade: wxAltaUsuario.__do_layout
        sizer_16 = wx.BoxSizer(wx.VERTICAL)
        #Agregar elementos al BoxSizer
        grid_sizer_1 = wx.GridSizer(5, 2, 0, 0)
        grid_sizer_1.Add(self.lblNombre, 0, 0, 0)
        grid_sizer_1.Add(self.text_ctrl_2, 0, 0, 0)
        grid_sizer_1.Add(self.lblApellidoPaterno, 0, 0, 0)
        grid_sizer_1.Add(self.text_ctrl_3, 0, 0, 0)
        grid_sizer_1.Add(self.lblApellidoMaterno, 0, 0, 0)
        grid_sizer_1.Add(self.text_ctrl_4, 0, 0, 0)
        grid_sizer_1.Add(self.lblRol, 0, 0, 0)
        grid_sizer_1.Add(self.combo_box_1, 0, 0, 0)
        grid_sizer_1.Add(self.btnAceptar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
        grid_sizer_1.Add(self.btnCancelar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
        sizer_16.Add(grid_sizer_1, 1, wx.EXPAND, 0)
        self.SetSizer(sizer_16)
        sizer_16.Fit(self)
        self.Layout()
        # end wxGlade

# end of class wxAltaUsuario


class wxListaAgente(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxListaAgente.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        #Variables
        self.btnAltaAgente = wx.Button(self, -1, "Nuevo Agente")
        self.grdAgente = wx.grid.Grid(self, -1, size=(1, 1))

        self.__set_properties()
        self.__do_layout()
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: wxListaAgente.__set_properties
        self.SetTitle("Lista Agentes")
        #Establecer elementos del grid
        self.grdAgente.CreateGrid(10, 6)
        self.grdAgente.SetColLabelValue(0, "Clave")
        self.grdAgente.SetColLabelValue(1, "Nombre")
        self.grdAgente.SetColLabelValue(2, "Apellido Paterno")
        self.grdAgente.SetColLabelValue(3, "Apellido Materno")
        self.grdAgente.SetColLabelValue(4, "")
        self.grdAgente.SetColLabelValue(5, "")
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: wxListaAgente.__do_layout
        sizer_17 = wx.BoxSizer(wx.VERTICAL)
        grid_sizer_2 = wx.GridSizer(2, 1, 0, 0)
        #Agregar los controles al BoxSizer
        grid_sizer_2.Add(self.btnAltaAgente, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 0)
        grid_sizer_2.Add(self.grdAgente, 1, wx.EXPAND, 0)
        sizer_17.Add(grid_sizer_2, 1, wx.EXPAND, 0)
        self.SetSizer(sizer_17)
        sizer_17.Fit(self)
        self.Layout()
        # end wxGlade

# end of class wxListaAgente


class wxAltaAgente(wx.Frame):
File: /home/pubuntu/wxInterfaz.py                                                Page 7 of 18

    def __init__(self, *args, **kwds):
        # begin wxGlade: wxAltaAgente.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        #Variables
        self.lblClave = wx.StaticText(self, -1, "Clave:")
        self.txtClave = wx.TextCtrl(self, -1, "")
        self.lblNombre = wx.StaticText(self, -1, "Nombre:")
        self.txtNombre = wx.TextCtrl(self, -1, "")
        self.lblApellidoPaterno = wx.StaticText(self, -1, "Apellido Paterno:")
        self.txtApPaterno = wx.TextCtrl(self, -1, "")
        self.lblApMaterno = wx.StaticText(self, -1, "Apellido Materno:")
        self.txtApMaterno = wx.TextCtrl(self, -1, "")
        self.btnAceptar = wx.Button(self, -1, "Aceptar")
        self.btnCancelar = wx.Button(self, -1, "Cancelar")

        self.__set_properties()
        self.__do_layout()
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: wxAltaAgente.__set_properties
        #Titulo del Frame
        self.SetTitle("Alta Agente")
        #Propiedades de los controles textbox
        self.txtNombre.SetMinSize((189, 27))
        self.txtApPaterno.SetMinSize((189, 27))
        self.txtApMaterno.SetMinSize((189, 27))
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: wxAltaAgente.__do_layout
        sizer_18 = wx.BoxSizer(wx.VERTICAL)
        #Agregar elementos al BoxSizer
        grid_sizer_3 = wx.GridSizer(5, 2, 0, 0)
        grid_sizer_3.Add(self.lblClave, 0, 0, 0)
        grid_sizer_3.Add(self.txtClave, 0, 0, 0)
        grid_sizer_3.Add(self.lblNombre, 0, 0, 0)
        grid_sizer_3.Add(self.txtNombre, 0, 0, 0)
        grid_sizer_3.Add(self.lblApellidoPaterno, 0, 0, 0)
        grid_sizer_3.Add(self.txtApPaterno, 0, 0, 0)
        grid_sizer_3.Add(self.lblApMaterno, 0, 0, 0)
        grid_sizer_3.Add(self.txtApMaterno, 0, 0, 0)
        grid_sizer_3.Add(self.btnAceptar, 0, 0, 0)
        grid_sizer_3.Add(self.btnCancelar, 0, 0, 0)
        sizer_18.Add(grid_sizer_3, 1, wx.EXPAND, 0)
        self.SetSizer(sizer_18)
        sizer_18.Fit(self)
        self.Layout()
        # end wxGlade

# end of class wxAltaAgente


class wxAltaCompania(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxAltaCompania.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        #Variables
        self.lblNombre = wx.StaticText(self, -1, "Nombre:")
        self.txtNombre = wx.TextCtrl(self, -1, "")
        self.lblDescripcion = wx.StaticText(self, -1, "Descripcion:")
        self.txtDescripcion = wx.TextCtrl(self, -1, "")
        self.btnAceptar = wx.Button(self, -1, "Aceptar")
        self.btnCancelar = wx.Button(self, -1, "Cancelar")
File: /home/pubuntu/wxInterfaz.py                                                            Page 8 of 18

        self.__set_properties()
        self.__do_layout()
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: wxAltaCompania.__set_properties
        #Establecer propiedades de controles
        self.SetTitle(u"Alta Compañia")
        self.txtNombre.SetMinSize((189, 27))
        self.txtDescripcion.SetMinSize((189, 27))
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: wxAltaCompania.__do_layout
        sizer_19 = wx.BoxSizer(wx.VERTICAL)
        #Agregar controles al BoxSizer
        grid_sizer_4 = wx.GridSizer(3, 2, 0, 0)
        grid_sizer_4.Add(self.lblNombre, 0, 0, 0)
        grid_sizer_4.Add(self.txtNombre, 0, 0, 0)
        grid_sizer_4.Add(self.lblDescripcion, 0, 0, 0)
        grid_sizer_4.Add(self.txtDescripcion, 0, 0, 0)
        grid_sizer_4.Add(self.btnAceptar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
        grid_sizer_4.Add(self.btnCancelar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
        sizer_19.Add(grid_sizer_4, 1, wx.EXPAND, 0)
        self.SetSizer(sizer_19)
        sizer_19.Fit(self)
        self.Layout()
        # end wxGlade

# end of class wxAltaCompania


class wxListaCompania(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxListaCompania.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        #Variables
        self.btnNuevaCompania = wx.Button(self, -1, u"Nueva Compañia")
        self.grid_1 = wx.grid.Grid(self, -1, size=(1, 1))

        self.__set_properties()
        self.__do_layout()
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: wxListaCompania.__set_properties
        #Propiedades
        self.SetTitle(u"Lista Compañia")
        self.grid_1.CreateGrid(10, 2)
        self.grid_1.SetColLabelValue(0, "Nombre")
        self.grid_1.SetColLabelValue(1, "Descripcion")
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: wxListaCompania.__do_layout
        sizer_20 = wx.BoxSizer(wx.VERTICAL)
        grid_sizer_5 = wx.GridSizer(2, 1, 0, 0)
        #Agregar elementos al boxsizer
        grid_sizer_5.Add(self.btnNuevaCompania, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 0)
        grid_sizer_5.Add(self.grid_1, 1, wx.EXPAND, 0)
        sizer_20.Add(grid_sizer_5, 1, wx.EXPAND, 0)
        self.SetSizer(sizer_20)
        sizer_20.Fit(self)
        self.Layout()
        # end wxGlade
File: /home/pubuntu/wxInterfaz.py                                                             Page 9 of 18

# end of class wxListaCompania


class wxListaTipoPoliza(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxListaTipoPoliza.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        #Variables
        self.btnNuevoTipoPoliza = wx.Button(self, -1, "Nuevo Tipo Poliza")
        self.grdTipoPoliza = wx.grid.Grid(self, -1, size=(1, 1))

         self.__set_properties()
         self.__do_layout()
         # end wxGlade

     def __set_properties(self):
         # begin wxGlade: wxListaTipoPoliza.__set_properties
         self.SetTitle("Lista Tipo Poliza")
         #Propiedades del Grid
         self.grdTipoPoliza.CreateGrid(10, 2)
         self.grdTipoPoliza.SetColLabelValue(0, "Id")
         self.grdTipoPoliza.SetColLabelValue(1, "Tipo Poliza")
         # end wxGlade

     def __do_layout(self):
         # begin wxGlade: wxListaTipoPoliza.__do_layout
         sizer_21 = wx.BoxSizer(wx.VERTICAL)
         grid_sizer_6 = wx.GridSizer(2, 1, 0, 0)
         #Agregar controles al boxsizer
         grid_sizer_6.Add(self.btnNuevoTipoPoliza, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL,
0)
        grid_sizer_6.Add(self.grdTipoPoliza, 1, wx.EXPAND, 0)
        sizer_21.Add(grid_sizer_6, 1, wx.EXPAND, 0)
        self.SetSizer(sizer_21)
        sizer_21.Fit(self)
        self.Layout()
        # end wxGlade

# end of class wxListaTipoPoliza


class wxAltaTipoPoliza(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxAltaTipoPoliza.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        #Variables
        self.lblDescripcion = wx.StaticText(self, -1, u"Descripción:")
        self.txtTipoPoliza = wx.TextCtrl(self, -1, "")
        self.btnAceptar = wx.Button(self, -1, "Aceptar")
        self.btnCancelar = wx.Button(self, -1, "Cancelar")

         self.__set_properties()
         self.__do_layout()
         # end wxGlade

     def __set_properties(self):
         # begin wxGlade: wxAltaTipoPoliza.__set_properties
         #Establecer propiedades
         self.SetTitle("Alta Tipo Poliza")
         self.txtTipoPoliza.SetMinSize((189, 27))
         self.btnCancelar.SetMinSize((85, 32))
         # end wxGlade

     def __do_layout(self):
         # begin wxGlade: wxAltaTipoPoliza.__do_layout
File: /home/pubuntu/wxInterfaz.py                                                    Page 10 of 18

       sizer_22 = wx.BoxSizer(wx.VERTICAL)
       grid_sizer_7 = wx.GridSizer(2, 2, 0, 0)
       #Agregar elementos al boxsizer
       grid_sizer_7.Add(self.lblDescripcion, 0, 0, 0)
       grid_sizer_7.Add(self.txtTipoPoliza, 0, 0, 0)
       grid_sizer_7.Add(self.btnAceptar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
       grid_sizer_7.Add(self.btnCancelar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
       sizer_22.Add(grid_sizer_7, 1, wx.EXPAND, 0)
       self.SetSizer(sizer_22)
       sizer_22.Fit(self)
       self.Layout()
       # end wxGlade

# end of class wxAltaTipoPoliza


class wxCobertura(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxCobertura.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        #Variables
        self.btnNuevaCobertura = wx.Button(self, -1, "Nueva Cobertura")
        self.grdCobertura = wx.grid.Grid(self, -1, size=(1, 1))

        self.__set_properties()
        self.__do_layout()
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: wxCobertura.__set_properties
        #Propiedades
        self.SetTitle("Lista Cobertura")
        self.grdCobertura.CreateGrid(10, 4)
        self.grdCobertura.SetColLabelValue(0, "Descripcion")
        self.grdCobertura.SetColLabelValue(1, "Tipo Poliza")
        self.grdCobertura.SetColLabelValue(2, "")
        self.grdCobertura.SetColLabelValue(3, "")
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: wxCobertura.__do_layout
        #Agregar elementos al boxsizer
        sizer_23 = wx.BoxSizer(wx.VERTICAL)
        grid_sizer_8 = wx.GridSizer(1, 1, 0, 0)
        grid_sizer_8.Add(self.btnNuevaCobertura, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
        grid_sizer_8.Add(self.grdCobertura, 1, wx.EXPAND, 0)
        sizer_23.Add(grid_sizer_8, 1, wx.EXPAND, 0)
        self.SetSizer(sizer_23)
        sizer_23.Fit(self)
        self.Layout()
        # end wxGlade

# end of class wxCobertura


class wxAltaCobertura(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxAltaCobertura.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        #Variables
        self.lblDescripcion = wx.StaticText(self, -1, u"Descripción:")
        self.ttxtDescripcion = wx.TextCtrl(self, -1, "")
        self.lblTipoPoliza = wx.StaticText(self, -1, "Tipo de Poliza:")
        self.combo_box_2 = wx.ComboBox(self, -1, choices=[], style=wx.CB_DROPDOWN)
        self.btnAceptar = wx.Button(self, -1, "Aceptar")
File: /home/pubuntu/wxInterfaz.py                                                    Page 11 of 18

        self.btnCancelar = wx.Button(self, -1, "Cancelar")

        self.__set_properties()
        self.__do_layout()
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: wxAltaCobertura.__set_properties
        #propiedades
        self.SetTitle("Alta Cobertura")
        self.ttxtDescripcion.SetMinSize((189, 27))
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: wxAltaCobertura.__do_layout
        sizer_24 = wx.BoxSizer(wx.VERTICAL)
        grid_sizer_9 = wx.GridSizer(3, 2, 0, 0)
        #Agregar elementos al boxsizer
        grid_sizer_9.Add(self.lblDescripcion, 0, 0, 0)
        grid_sizer_9.Add(self.ttxtDescripcion, 0, 0, 0)
        grid_sizer_9.Add(self.lblTipoPoliza, 0, 0, 0)
        grid_sizer_9.Add(self.combo_box_2, 0, 0, 0)
        grid_sizer_9.Add(self.btnAceptar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
        grid_sizer_9.Add(self.btnCancelar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
        sizer_24.Add(grid_sizer_9, 1, wx.EXPAND, 0)
        self.SetSizer(sizer_24)
        sizer_24.Fit(self)
        self.Layout()
        # end wxGlade

# end of class wxAltaCobertura


class wxPolizaVida(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxPolizaVida.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        #Variables
        self.lblNumeroPoliza = wx.StaticText(self, -1, "Numero Poliza:")
        self.txtNumeroPoliza = wx.TextCtrl(self, -1, "")
        self.label_1 = wx.StaticText(self, -1, "Asegurado:")
        self.lblNombre = wx.StaticText(self, -1, "Nombre:")
        self.txtNombre = wx.TextCtrl(self, -1, "")
        self.lblApellidoPaterno = wx.StaticText(self, -1, "Apellido Paterno:")
        self.txtApellidoPaterno = wx.TextCtrl(self, -1, "")
        self.lblApellidoMaterno = wx.StaticText(self, -1, "Apellido Materno:")
        self.txtApellidoMaterno = wx.TextCtrl(self, -1, "")
        self.lblRFC = wx.StaticText(self, -1, "RFC:")
        self.txtRFC = wx.TextCtrl(self, -1, "")
        self.label_2 = wx.StaticText(self, -1, "Fecha Nacimiento:")
        self.cmbDia = wx.ComboBox(self, -1, choices=["Dia"], style=wx.CB_DROPDOWN)
        self.cmbMes = wx.ComboBox(self, -1, choices=["Mes"], style=wx.CB_DROPDOWN)
        self.cmbAnio = wx.ComboBox(self, -1, choices=[""], style=wx.CB_DROPDOWN)
        self.lblCalle = wx.StaticText(self, -1, "Calle:")
        self.txtCalle = wx.TextCtrl(self, -1, "")
        self.lblColonia = wx.StaticText(self, -1, "Colonia:")
        self.txtColonia = wx.TextCtrl(self, -1, "")
        self.lblMunicipio = wx.StaticText(self, -1, "Municipio:")
        self.txtMunicipio = wx.TextCtrl(self, -1, "")
        self.lblEstado = wx.StaticText(self, -1, "Estado:")
        self.txtEstado = wx.TextCtrl(self, -1, "")
        self.lblTelefono = wx.StaticText(self, -1, u"Teléfono:")
        self.txtTelefono = wx.TextCtrl(self, -1, "")
        self.lblCP = wx.StaticText(self, -1, "CP:")
        self.txtCP = wx.TextCtrl(self, -1, "")
        self.btAceptar = wx.Button(self, -1, "Aceptar")
File: /home/pubuntu/wxInterfaz.py                                            Page 12 of 18

       self.btnCancelar = wx.Button(self, -1, "Cancelar")

       self.__set_properties()
       self.__do_layout()
       # end wxGlade

   def __set_properties(self):
       # begin wxGlade: wxPolizaVida.__set_properties
       #Establecer Propiedades
       self.SetTitle("AltaPolizaVida")
       self.txtNombre.SetMinSize((189, 27))
       self.txtApellidoPaterno.SetMinSize((189, 27))
       self.txtApellidoMaterno.SetMinSize((189, 27))
       self.txtRFC.SetMinSize((189, 27))
       self.cmbDia.SetMinSize((60, 29))
       self.cmbDia.SetSelection(0)
       self.cmbMes.SetMinSize((80, 29))
       self.cmbMes.SetSelection(-1)
       self.cmbAnio.SetMinSize((70, 29))
       #Elemento seleccionado del combo
       self.cmbAnio.SetSelection(-1)
       self.txtCalle.SetMinSize((189, 27))
       self.txtColonia.SetMinSize((189, 27))
       self.txtMunicipio.SetMinSize((189, 27))
       self.txtEstado.SetMinSize((189, 27))
       # end wxGlade

   def __do_layout(self):
       # begin wxGlade: wxPolizaVida.__do_layout
       sizer_25 = wx.BoxSizer(wx.VERTICAL)
       grid_sizer_10 = wx.GridSizer(15, 2, 0, 0)
       sizer_26 = wx.BoxSizer(wx.HORIZONTAL)
       #Agregar elementos al boxsizer
       grid_sizer_10.Add(self.lblNumeroPoliza, 0, 0, 0)
       grid_sizer_10.Add(self.txtNumeroPoliza, 0, 0, 0)
       grid_sizer_10.Add(self.label_1, 0, 0, 0)
       grid_sizer_10.Add((189, 20), 0, 0, 0)
       grid_sizer_10.Add(self.lblNombre, 0, 0, 0)
       grid_sizer_10.Add(self.txtNombre, 0, 0, 0)
       grid_sizer_10.Add(self.lblApellidoPaterno, 0, 0, 0)
       grid_sizer_10.Add(self.txtApellidoPaterno, 0, 0, 0)
       grid_sizer_10.Add(self.lblApellidoMaterno, 0, 0, 0)
       grid_sizer_10.Add(self.txtApellidoMaterno, 0, 0, 0)
       grid_sizer_10.Add(self.lblRFC, 0, 0, 0)
       grid_sizer_10.Add(self.txtRFC, 0, 0, 0)
       grid_sizer_10.Add(self.label_2, 0, 0, 0)
       sizer_26.Add(self.cmbDia, 0, 0, 0)
       sizer_26.Add(self.cmbMes, 0, 0, 0)
       sizer_26.Add(self.cmbAnio, 0, 0, 0)
       grid_sizer_10.Add(sizer_26, 1, wx.EXPAND, 0)
       grid_sizer_10.Add(self.lblCalle, 0, 0, 0)
       grid_sizer_10.Add(self.txtCalle, 0, 0, 0)
       grid_sizer_10.Add(self.lblColonia, 0, 0, 0)
       grid_sizer_10.Add(self.txtColonia, 0, 0, 0)
       grid_sizer_10.Add(self.lblMunicipio, 0, 0, 0)
       grid_sizer_10.Add(self.txtMunicipio, 0, 0, 0)
       grid_sizer_10.Add(self.lblEstado, 0, 0, 0)
       grid_sizer_10.Add(self.txtEstado, 0, 0, 0)
       grid_sizer_10.Add(self.lblTelefono, 0, 0, 0)
       grid_sizer_10.Add(self.txtTelefono, 0, 0, 0)
       grid_sizer_10.Add(self.lblCP, 0, 0, 0)
       grid_sizer_10.Add(self.txtCP, 0, 0, 0)
       grid_sizer_10.Add(self.btAceptar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
       grid_sizer_10.Add(self.btnCancelar, 0, 0, 0)
       sizer_25.Add(grid_sizer_10, 1, wx.EXPAND, 0)
       self.SetSizer(sizer_25)
       sizer_25.Fit(self)
File: /home/pubuntu/wxInterfaz.py                                            Page 13 of 18

        self.Layout()
        # end wxGlade

# end of class wxPolizaVida


class wxPolizaCasa(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxPolizaCasa.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        #variables
        self.lblNumeroPoliza = wx.StaticText(self, -1, "Numero Poliza:")
        self.txtNumeroPoliza = wx.TextCtrl(self, -1, "")
        self.lblSumaAsegurada = wx.StaticText(self, -1, "Suma Asegurada:")
        self.txtAsegurada = wx.TextCtrl(self, -1, "")
        self.lblCalle = wx.StaticText(self, -1, "Calle:")
        self.txtCalle = wx.TextCtrl(self, -1, "")
        self.label_3 = wx.StaticText(self, -1, "Numero:")
        self.txtNumero = wx.TextCtrl(self, -1, "")
        self.lblColonia = wx.StaticText(self, -1, "Colonia:")
        self.txtColonia = wx.TextCtrl(self, -1, "")
        self.lblCP = wx.StaticText(self, -1, "CP:")
        self.txtCP = wx.TextCtrl(self, -1, "")
        self.lblMunicipio = wx.StaticText(self, -1, "Municipio:")
        self.txtMunicipio = wx.TextCtrl(self, -1, "")
        self.lblEstado = wx.StaticText(self, -1, "Estado:")
        self.txtEstado = wx.TextCtrl(self, -1, "")
        self.lblNumeroNiveles = wx.StaticText(self, -1, "Numero Niveles:")
        self.txtNumeroNiveles = wx.TextCtrl(self, -1, "")
        self.lblSotano = wx.StaticText(self, -1, u"Sotáno")
        self.chkSotano = wx.CheckBox(self, -1, "Si")
        self.lblHabitada = wx.StaticText(self, -1, "Habitada")
        self.chkHabitada = wx.CheckBox(self, -1, "Si")
        self.lblObservaciones = wx.StaticText(self, -1, "Observaciones:")
        self.txtObservaciones = wx.TextCtrl(self, -1, "")
        self.btnAceptar = wx.Button(self, -1, "Aceptar")
        self.btnCancelar = wx.Button(self, -1, "Cancelar")

        self.__set_properties()
        self.__do_layout()
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: wxPolizaCasa.__set_properties
        #Propiedades
        self.SetTitle("AltaPolizaCasa")
        self.txtCalle.SetMinSize((189, 27))
        self.txtColonia.SetMinSize((189, 27))
        self.txtMunicipio.SetMinSize((189, 27))
        self.txtEstado.SetMinSize((189, 27))
        self.txtObservaciones.SetMinSize((189, 27))
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: wxPolizaCasa.__do_layout
        #Agregar elementos al boxsizer
        sizer_27 = wx.BoxSizer(wx.VERTICAL)
        grid_sizer_11 = wx.GridSizer(14, 2, 0, 0)
        grid_sizer_11.Add(self.lblNumeroPoliza, 0, 0, 0)
        grid_sizer_11.Add(self.txtNumeroPoliza, 0, 0, 0)
        grid_sizer_11.Add(self.lblSumaAsegurada, 0, 0, 0)
        grid_sizer_11.Add(self.txtAsegurada, 0, 0, 0)
        grid_sizer_11.Add(self.lblCalle, 0, 0, 0)
        grid_sizer_11.Add(self.txtCalle, 0, 0, 0)
        grid_sizer_11.Add(self.label_3, 0, 0, 0)
        grid_sizer_11.Add(self.txtNumero, 0, 0, 0)
File: /home/pubuntu/wxInterfaz.py                                                     Page 14 of 18

       grid_sizer_11.Add(self.lblColonia, 0, 0, 0)
       grid_sizer_11.Add(self.txtColonia, 0, 0, 0)
       grid_sizer_11.Add(self.lblCP, 0, 0, 0)
       grid_sizer_11.Add(self.txtCP, 0, 0, 0)
       grid_sizer_11.Add(self.lblMunicipio, 0, 0, 0)
       grid_sizer_11.Add(self.txtMunicipio, 0, 0, 0)
       grid_sizer_11.Add(self.lblEstado, 0, 0, 0)
       grid_sizer_11.Add(self.txtEstado, 0, 0, 0)
       grid_sizer_11.Add(self.lblNumeroNiveles, 0, 0, 0)
       grid_sizer_11.Add(self.txtNumeroNiveles, 0, 0, 0)
       grid_sizer_11.Add(self.lblSotano, 0, 0, 0)
       grid_sizer_11.Add(self.chkSotano, 0, 0, 0)
       grid_sizer_11.Add(self.lblHabitada, 0, 0, 0)
       grid_sizer_11.Add(self.chkHabitada, 0, 0, 0)
       grid_sizer_11.Add(self.lblObservaciones, 0, 0, 0)
       grid_sizer_11.Add(self.txtObservaciones, 0, 0, 0)
       grid_sizer_11.Add(self.btnAceptar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
       grid_sizer_11.Add(self.btnCancelar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
       sizer_27.Add(grid_sizer_11, 1, wx.EXPAND, 0)
       self.SetSizer(sizer_27)
       sizer_27.Fit(self)
       self.Layout()
       # end wxGlade

# end of class wxPolizaCasa


class wxPolizaVehiculo(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxPolizaVehiculo.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        #Variables
        self.lblNumeroPoliza = wx.StaticText(self, -1, "Numero Poliza:")
        self.text_ctrl_9 = wx.TextCtrl(self, -1, "")
        self.lblAsegurado = wx.StaticText(self, -1, "Asegurado:")
        self.cmbAsegurado = wx.ComboBox(self, -1, choices=[], style=wx.CB_DROPDOWN)
        self.label_4 = wx.StaticText(self, -1, "Vehiculo:")
        self.lblClaveSBG = wx.StaticText(self, -1, "Clave SBG:")
        self.txtClaveSBG = wx.TextCtrl(self, -1, "")
        self.lblMarca = wx.StaticText(self, -1, "Marca:")
        self.txtMarca = wx.TextCtrl(self, -1, "")
        self.lblTipo = wx.StaticText(self, -1, "Tipo:")
        self.txtTipo = wx.TextCtrl(self, -1, "")
        self.lblModelo = wx.StaticText(self, -1, "Modelo:")
        self.txtModelo = wx.TextCtrl(self, -1, "")
        self.lblPlacas = wx.StaticText(self, -1, "Placas:")
        self.txtPlacas = wx.TextCtrl(self, -1, "")
        self.lblNumeroSerie = wx.StaticText(self, -1, "Numero Serie:")
        self.txtNumeroSerie = wx.TextCtrl(self, -1, "")
        self.lblNumeroMotor = wx.StaticText(self, -1, "Numero Motor:")
        self.txtNumeroMotor = wx.TextCtrl(self, -1, "")
        self.btnAceptar = wx.Button(self, -1, "Aceptar")
        self.btnCancelar = wx.Button(self, -1, "Cancelar")

        self.__set_properties()
        self.__do_layout()
        # end wxGlade

    def __set_properties(self):
        #Propiedades
        # begin wxGlade: wxPolizaVehiculo.__set_properties
        self.SetTitle("Alta Poliza Vehiculo")
        self.txtClaveSBG.SetMinSize((189, 27))
        self.txtMarca.SetMinSize((189, 27))
        self.txtTipo.SetMinSize((189, 27))
        self.txtModelo.SetMinSize((189, 27))
File: /home/pubuntu/wxInterfaz.py                                               Page 15 of 18

        self.txtPlacas.SetMinSize((189, 27))
        self.txtNumeroSerie.SetMinSize((189, 27))
        #Establecer tamaño minimo
        self.txtNumeroMotor.SetMinSize((189, 27))
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: wxPolizaVehiculo.__do_layout
        #Agregar contoles al boxsizer
        sizer_28 = wx.BoxSizer(wx.VERTICAL)
        grid_sizer_12 = wx.GridSizer(11, 2, 0, 0)
        grid_sizer_12.Add(self.lblNumeroPoliza, 0, 0, 0)
        grid_sizer_12.Add(self.text_ctrl_9, 0, 0, 0)
        grid_sizer_12.Add(self.lblAsegurado, 0, 0, 0)
        grid_sizer_12.Add(self.cmbAsegurado, 0, 0, 0)
        grid_sizer_12.Add(self.label_4, 0, 0, 0)
        grid_sizer_12.Add((189, 20), 0, 0, 0)
        grid_sizer_12.Add(self.lblClaveSBG, 0, 0, 0)
        grid_sizer_12.Add(self.txtClaveSBG, 0, 0, 0)
        grid_sizer_12.Add(self.lblMarca, 0, 0, 0)
        grid_sizer_12.Add(self.txtMarca, 0, 0, 0)
        grid_sizer_12.Add(self.lblTipo, 0, 0, 0)
        grid_sizer_12.Add(self.txtTipo, 0, 0, 0)
        grid_sizer_12.Add(self.lblModelo, 0, 0, 0)
        grid_sizer_12.Add(self.txtModelo, 0, 0, 0)
        grid_sizer_12.Add(self.lblPlacas, 0, 0, 0)
        grid_sizer_12.Add(self.txtPlacas, 0, 0, 0)
        grid_sizer_12.Add(self.lblNumeroSerie, 0, 0, 0)
        grid_sizer_12.Add(self.txtNumeroSerie, 0, 0, 0)
        grid_sizer_12.Add(self.lblNumeroMotor, 0, 0, 0)
        grid_sizer_12.Add(self.txtNumeroMotor, 0, 0, 0)
        grid_sizer_12.Add(self.btnAceptar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
        grid_sizer_12.Add(self.btnCancelar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
        sizer_28.Add(grid_sizer_12, 1, wx.EXPAND, 0)
        self.SetSizer(sizer_28)
        sizer_28.Fit(self)
        self.Layout()
        # end wxGlade

# end of class wxPolizaVehiculo


class wxAltaPolizaGastosMedicos(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxAltaPolizaGastosMedicos.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        #Variables
        self.lblNumeroPoliza = wx.StaticText(self, -1, "Numero Poliza:")
        self.txtNumeroPoliza = wx.TextCtrl(self, -1, "")
        self.lblAsegurados = wx.StaticText(self, -1, "Asegurados:")
        self.grgAsegurados = wx.grid.Grid(self, -1, size=(1, 1))
        self.btnAgregarAsegurado = wx.Button(self, -1, "Agregar Asegurado")
        self.lblSumaAsegurada = wx.StaticText(self, -1, "Suma Asegurada:")
        self.text_ctrl_10 = wx.TextCtrl(self, -1, "")
        self.lblDeducible = wx.StaticText(self, -1, "Deducible:")
        self.txtDeducible = wx.TextCtrl(self, -1, "")
        self.btnAceptar = wx.Button(self, -1, "Aceptar")
        self.btnCancelar = wx.Button(self, -1, "Cancelar")

        self.__set_properties()
        self.__do_layout()
        # end wxGlade

    def __set_properties(self):
        #Establecer propiedades
        # begin wxGlade: wxAltaPolizaGastosMedicos.__set_properties
File: /home/pubuntu/wxInterfaz.py                                                           Page 16 of 18

        self.SetTitle("Alta Poliza Gastos Medicos")
        self.grgAsegurados.CreateGrid(2, 2)
        self.grgAsegurados.SetColLabelValue(0, "Asegurado")
        self.grgAsegurados.SetColLabelValue(1, "Parentezco")
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: wxAltaPolizaGastosMedicos.__do_layout
        sizer_29 = wx.BoxSizer(wx.VERTICAL)
        grid_sizer_13 = wx.GridSizer(7, 2, 0, 0)
        #Agregar controles al grid
        grid_sizer_13.Add(self.lblNumeroPoliza, 0, 0, 0)
        grid_sizer_13.Add(self.txtNumeroPoliza, 0, 0, 0)
        grid_sizer_13.Add(self.lblAsegurados, 0, 0, 0)
        grid_sizer_13.Add((189, 20), 0, 0, 0)
        grid_sizer_13.Add(self.grgAsegurados, 1, wx.EXPAND, 0)
        grid_sizer_13.Add(self.btnAgregarAsegurado, 0, 0, 0)
        grid_sizer_13.Add(self.lblSumaAsegurada, 0, 0, 0)
        grid_sizer_13.Add(self.text_ctrl_10, 0, 0, 0)
        grid_sizer_13.Add(self.lblDeducible, 0, 0, 0)
        grid_sizer_13.Add(self.txtDeducible, 0, 0, 0)
        grid_sizer_13.Add(self.btnAceptar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
        grid_sizer_13.Add(self.btnCancelar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
        sizer_29.Add(grid_sizer_13, 1, wx.EXPAND, 0)
        self.SetSizer(sizer_29)
        sizer_29.Fit(self)
        self.Layout()
        # end wxGlade

# end of class wxAltaPolizaGastosMedicos


class wxListaPoliza(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxListaPoliza.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        #Variables
        self.btnAltaPoliza = wx.Button(self, -1, "Nueva Poliza")
        self.lblFiltrar = wx.StaticText(self, -1, "Filtrar Por:")
        self.cmbTipoPoliza = wx.ComboBox(self, -1, choices=["Poliza Vida", "Poliza Casa", "Poliza
Vehiculo", "Poliza Gastos Medicos"], style=wx.CB_DROPDOWN)
        self.grdPoliza = wx.grid.Grid(self, -1, size=(1, 1))

        self.__set_properties()
        self.__do_layout()
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: wxListaPoliza.__set_properties
        #establecer propiedades
        self.SetTitle("Lista Polizas")
        self.cmbTipoPoliza.SetSelection(-1)
        self.grdPoliza.CreateGrid(10, 7)
        #Elementos del Grid
        self.grdPoliza.SetColLabelValue(0, "Numero")
        self.grdPoliza.SetColLabelValue(1, "Agente")
        self.grdPoliza.SetColLabelValue(2, "Cliente")
        self.grdPoliza.SetColLabelValue(3, "Compania")
        self.grdPoliza.SetColLabelValue(4, "Tipo Poliza")
        self.grdPoliza.SetColLabelValue(5, "Precio")
        self.grdPoliza.SetColLabelValue(6, "Detalles")
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: wxListaPoliza.__do_layout
        sizer_30 = wx.BoxSizer(wx.VERTICAL)
File: /home/pubuntu/wxInterfaz.py                                                 Page 17 of 18

       grid_sizer_14 = wx.GridSizer(3, 1, 0, 0)
       sizer_31 = wx.BoxSizer(wx.HORIZONTAL)
       grid_sizer_14.Add(self.btnAltaPoliza, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
       sizer_31.Add(self.lblFiltrar, 0, 0, 0)
       sizer_31.Add(self.cmbTipoPoliza, 0, 0, 0)
       grid_sizer_14.Add(sizer_31, 1, wx.EXPAND, 0)
       grid_sizer_14.Add(self.grdPoliza, 1, wx.EXPAND, 0)
       sizer_30.Add(grid_sizer_14, 1, wx.EXPAND, 0)
       self.SetSizer(sizer_30)
       sizer_30.Fit(self)
       self.Layout()
       # end wxGlade

# end of class wxListaPoliza


class wxReportes(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: wxReportes.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        #VAriables
        self.lblReportes = wx.StaticText(self, -1, "Reportes")
        self.chkUsuarios = wx.CheckBox(self, -1, "Usuarios del Sistema")
        self.chkAgentes = wx.CheckBox(self, -1, "Agentes")
        self.chkCompanias = wx.CheckBox(self, -1, u"Compañias")
        self.chkTipoPolizas = wx.CheckBox(self, -1, "Tipos de Polizas")
        self.chkCoberturas = wx.CheckBox(self, -1, "Coberturas")
        self.chkClientes = wx.CheckBox(self, -1, "Clientes")
        self.chkPolizas = wx.CheckBox(self, -1, "Polizas")
        self.rdbCliente = wx.RadioButton(self, -1, "Cliente en especifico")
        self.rdbAgente = wx.RadioButton(self, -1, "Agente en especifico")
        self.rdbCompania = wx.RadioButton(self, -1, u"Compañia en especifico")
        self.rdbTipoPoliza = wx.RadioButton(self, -1, "Poliza en especifico")
        self.rdbCobertura = wx.RadioButton(self, -1, "Cobertura en especifico")
        self.btnVerReporte = wx.Button(self, -1, "Ver Reporte")

        self.__set_properties()
        self.__do_layout()
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: wxReportes.__set_properties
        self.SetTitle("Reportes")
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: wxReportes.__do_layout
        sizer_32 = wx.BoxSizer(wx.VERTICAL)
        grid_sizer_15 = wx.GridSizer(14, 1, 0, 0)
        sizer_38 = wx.BoxSizer(wx.HORIZONTAL)
        sizer_37 = wx.BoxSizer(wx.HORIZONTAL)
        sizer_36 = wx.BoxSizer(wx.HORIZONTAL)
        sizer_35 = wx.BoxSizer(wx.HORIZONTAL)
        sizer_34 = wx.BoxSizer(wx.HORIZONTAL)
        sizer_33 = wx.BoxSizer(wx.HORIZONTAL)
        #Agregar controles al boxsizer
        grid_sizer_15.Add(self.lblReportes, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
        grid_sizer_15.Add(self.chkUsuarios, 0, 0, 0)
        grid_sizer_15.Add(self.chkAgentes, 0, 0, 0)
        grid_sizer_15.Add(self.chkCompanias, 0, 0, 0)
        grid_sizer_15.Add(self.chkTipoPolizas, 0, 0, 0)
        grid_sizer_15.Add(self.chkCoberturas, 0, 0, 0)
        grid_sizer_15.Add(self.chkClientes, 0, 0, 0)
        grid_sizer_15.Add(self.chkPolizas, 0, 0, 0)
        sizer_33.Add((20, 20), 0, 0, 0)
        sizer_33.Add(self.rdbCliente, 0, 0, 0)
File: /home/pubuntu/wxInterfaz.py                                           Page 18 of 18

       grid_sizer_15.Add(sizer_33, 1, wx.EXPAND, 0)
       sizer_34.Add((20, 20), 0, 0, 0)
       #Agregar radiobutton
       sizer_34.Add(self.rdbAgente, 0, 0, 0)
       grid_sizer_15.Add(sizer_34, 1, wx.EXPAND, 0)
       sizer_35.Add((20, 20), 0, 0, 0)
       sizer_35.Add(self.rdbCompania, 0, 0, 0)
       grid_sizer_15.Add(sizer_35, 1, wx.EXPAND, 0)
       sizer_36.Add((20, 20), 0, 0, 0)
       sizer_36.Add(self.rdbTipoPoliza, 0, 0, 0)
       grid_sizer_15.Add(sizer_36, 1, wx.EXPAND, 0)
       sizer_37.Add((20, 20), 0, 0, 0)
       sizer_37.Add(self.rdbCobertura, 0, 0, 0)
       grid_sizer_15.Add(sizer_37, 1, wx.EXPAND, 0)
       sizer_38.Add(self.btnVerReporte, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
       grid_sizer_15.Add(sizer_38, 1, wx.EXPAND, 0)
       sizer_32.Add(grid_sizer_15, 1, wx.EXPAND, 0)
       self.SetSizer(sizer_32)
       sizer_32.Fit(self)
       self.Layout()
       # end wxGlade

# end of class wxReportes


if __name__ == "__main__":
    app = wx.PySimpleApp(0)
    wx.InitAllImageHandlers()
    AltaPoliza = wxAltaPoliza(None, -1, "")
    app.SetTopWindow(AltaPoliza)
         #mostrar frame alta poliza
    AltaPoliza.Show()
    app.MainLoop()

Mais conteúdo relacionado

Mais procurados

Contando uma história com O.O.
Contando uma história com O.O.Contando uma história com O.O.
Contando uma história com O.O.Vagner Zampieri
 
Phpで作るmovable typeプラグイン
Phpで作るmovable typeプラグインPhpで作るmovable typeプラグイン
Phpで作るmovable typeプラグインYuji Takayama
 
Command-Oriented Architecture
Command-Oriented ArchitectureCommand-Oriented Architecture
Command-Oriented ArchitectureLuiz Messias
 
[FT-7][snowmantw] How to make a new functional language and make the world be...
[FT-7][snowmantw] How to make a new functional language and make the world be...[FT-7][snowmantw] How to make a new functional language and make the world be...
[FT-7][snowmantw] How to make a new functional language and make the world be...Functional Thursday
 
Desarrollo de módulos en Drupal e integración con dispositivos móviles
Desarrollo de módulos en Drupal e integración con dispositivos móvilesDesarrollo de módulos en Drupal e integración con dispositivos móviles
Desarrollo de módulos en Drupal e integración con dispositivos móvilesLuis Curo Salvatierra
 
MongoDB全機能解説2
MongoDB全機能解説2MongoDB全機能解説2
MongoDB全機能解説2Takahiro Inoue
 
Advanced GORM - Performance, Customization and Monitoring
Advanced GORM - Performance, Customization and MonitoringAdvanced GORM - Performance, Customization and Monitoring
Advanced GORM - Performance, Customization and MonitoringBurt Beckwith
 
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤Takahiro Inoue
 
Exhibition of Atrocity
Exhibition of AtrocityExhibition of Atrocity
Exhibition of AtrocityMichael Pirnat
 
Intro programacion funcional
Intro programacion funcionalIntro programacion funcional
Intro programacion funcionalNSCoder Mexico
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to PythonUC San Diego
 
The Ring programming language version 1.10 book - Part 56 of 212
The Ring programming language version 1.10 book - Part 56 of 212The Ring programming language version 1.10 book - Part 56 of 212
The Ring programming language version 1.10 book - Part 56 of 212Mahmoud Samir Fayed
 

Mais procurados (20)

Contando uma história com O.O.
Contando uma história com O.O.Contando uma história com O.O.
Contando uma história com O.O.
 
Phpで作るmovable typeプラグイン
Phpで作るmovable typeプラグインPhpで作るmovable typeプラグイン
Phpで作るmovable typeプラグイン
 
Underscore
UnderscoreUnderscore
Underscore
 
Command-Oriented Architecture
Command-Oriented ArchitectureCommand-Oriented Architecture
Command-Oriented Architecture
 
[FT-7][snowmantw] How to make a new functional language and make the world be...
[FT-7][snowmantw] How to make a new functional language and make the world be...[FT-7][snowmantw] How to make a new functional language and make the world be...
[FT-7][snowmantw] How to make a new functional language and make the world be...
 
jQuery
jQueryjQuery
jQuery
 
Desarrollo de módulos en Drupal e integración con dispositivos móviles
Desarrollo de módulos en Drupal e integración con dispositivos móvilesDesarrollo de módulos en Drupal e integración con dispositivos móviles
Desarrollo de módulos en Drupal e integración con dispositivos móviles
 
Punto fijo multivariante
Punto fijo multivariantePunto fijo multivariante
Punto fijo multivariante
 
MongoDB全機能解説2
MongoDB全機能解説2MongoDB全機能解説2
MongoDB全機能解説2
 
Python Day1
Python Day1Python Day1
Python Day1
 
Advanced GORM - Performance, Customization and Monitoring
Advanced GORM - Performance, Customization and MonitoringAdvanced GORM - Performance, Customization and Monitoring
Advanced GORM - Performance, Customization and Monitoring
 
MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤MongoDBで作るソーシャルデータ新解析基盤
MongoDBで作るソーシャルデータ新解析基盤
 
Spock and Geb
Spock and GebSpock and Geb
Spock and Geb
 
Groovy scripts with Groovy
Groovy scripts with GroovyGroovy scripts with Groovy
Groovy scripts with Groovy
 
Exhibition of Atrocity
Exhibition of AtrocityExhibition of Atrocity
Exhibition of Atrocity
 
Lenses
LensesLenses
Lenses
 
Core dev summit
Core dev summitCore dev summit
Core dev summit
 
Intro programacion funcional
Intro programacion funcionalIntro programacion funcional
Intro programacion funcional
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
 
The Ring programming language version 1.10 book - Part 56 of 212
The Ring programming language version 1.10 book - Part 56 of 212The Ring programming language version 1.10 book - Part 56 of 212
The Ring programming language version 1.10 book - Part 56 of 212
 

Destaque

Writing & Managing Email
Writing & Managing EmailWriting & Managing Email
Writing & Managing EmailChris Friend
 
Making tastier code through refactoring
Making tastier code through refactoringMaking tastier code through refactoring
Making tastier code through refactoringarctarus
 
Fortune Regained: Online Collaborative Writing Tools
Fortune Regained: Online Collaborative Writing ToolsFortune Regained: Online Collaborative Writing Tools
Fortune Regained: Online Collaborative Writing ToolsChris Friend
 
The Impact of Socio-Economic Status on Acceptance of LGBT Gifted Students in ...
The Impact of Socio-Economic Status on Acceptance of LGBT Gifted Students in ...The Impact of Socio-Economic Status on Acceptance of LGBT Gifted Students in ...
The Impact of Socio-Economic Status on Acceptance of LGBT Gifted Students in ...Chris Friend
 
Professional Writing
Professional WritingProfessional Writing
Professional WritingChris Friend
 

Destaque (8)

Writing & Managing Email
Writing & Managing EmailWriting & Managing Email
Writing & Managing Email
 
Making tastier code through refactoring
Making tastier code through refactoringMaking tastier code through refactoring
Making tastier code through refactoring
 
Fortune Regained: Online Collaborative Writing Tools
Fortune Regained: Online Collaborative Writing ToolsFortune Regained: Online Collaborative Writing Tools
Fortune Regained: Online Collaborative Writing Tools
 
Project
ProjectProject
Project
 
Grammar Brush-Up
Grammar Brush-UpGrammar Brush-Up
Grammar Brush-Up
 
The Impact of Socio-Economic Status on Acceptance of LGBT Gifted Students in ...
The Impact of Socio-Economic Status on Acceptance of LGBT Gifted Students in ...The Impact of Socio-Economic Status on Acceptance of LGBT Gifted Students in ...
The Impact of Socio-Economic Status on Acceptance of LGBT Gifted Students in ...
 
Luke guided tour 1
Luke guided tour 1Luke guided tour 1
Luke guided tour 1
 
Professional Writing
Professional WritingProfessional Writing
Professional Writing
 

Semelhante a interfaz

The Ring programming language version 1.5.1 book - Part 44 of 180
The Ring programming language version 1.5.1 book - Part 44 of 180The Ring programming language version 1.5.1 book - Part 44 of 180
The Ring programming language version 1.5.1 book - Part 44 of 180Mahmoud Samir Fayed
 
The Ring programming language version 1.9 book - Part 54 of 210
The Ring programming language version 1.9 book - Part 54 of 210The Ring programming language version 1.9 book - Part 54 of 210
The Ring programming language version 1.9 book - Part 54 of 210Mahmoud Samir Fayed
 
The Ring programming language version 1.7 book - Part 16 of 196
The Ring programming language version 1.7 book - Part 16 of 196The Ring programming language version 1.7 book - Part 16 of 196
The Ring programming language version 1.7 book - Part 16 of 196Mahmoud Samir Fayed
 
The Ring programming language version 1.6 book - Part 15 of 189
The Ring programming language version 1.6 book - Part 15 of 189The Ring programming language version 1.6 book - Part 15 of 189
The Ring programming language version 1.6 book - Part 15 of 189Mahmoud Samir Fayed
 
The Ring programming language version 1.8 book - Part 74 of 202
The Ring programming language version 1.8 book - Part 74 of 202The Ring programming language version 1.8 book - Part 74 of 202
The Ring programming language version 1.8 book - Part 74 of 202Mahmoud Samir Fayed
 
The Ring programming language version 1.5.2 book - Part 43 of 181
The Ring programming language version 1.5.2 book - Part 43 of 181The Ring programming language version 1.5.2 book - Part 43 of 181
The Ring programming language version 1.5.2 book - Part 43 of 181Mahmoud Samir Fayed
 
4시간만에 따라해보는 Windows 10 앱 개발 샘플코드
4시간만에 따라해보는 Windows 10 앱 개발 샘플코드4시간만에 따라해보는 Windows 10 앱 개발 샘플코드
4시간만에 따라해보는 Windows 10 앱 개발 샘플코드영욱 김
 
The Ring programming language version 1.9 book - Part 53 of 210
The Ring programming language version 1.9 book - Part 53 of 210The Ring programming language version 1.9 book - Part 53 of 210
The Ring programming language version 1.9 book - Part 53 of 210Mahmoud Samir Fayed
 
The Ring programming language version 1.7 book - Part 72 of 196
The Ring programming language version 1.7 book - Part 72 of 196The Ring programming language version 1.7 book - Part 72 of 196
The Ring programming language version 1.7 book - Part 72 of 196Mahmoud Samir Fayed
 
Pyimproved again
Pyimproved againPyimproved again
Pyimproved againrik0
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Datagrids with Symfony 2, Backbone and Backgrid
Datagrids with Symfony 2, Backbone and BackgridDatagrids with Symfony 2, Backbone and Backgrid
Datagrids with Symfony 2, Backbone and BackgridGiorgio Cefaro
 
Datagrids with Symfony 2, Backbone and Backgrid
Datagrids with Symfony 2, Backbone and BackgridDatagrids with Symfony 2, Backbone and Backgrid
Datagrids with Symfony 2, Backbone and Backgrideugenio pombi
 
Swift Tableview iOS App Development
Swift Tableview iOS App DevelopmentSwift Tableview iOS App Development
Swift Tableview iOS App DevelopmentKetan Raval
 
The Ring programming language version 1.8 book - Part 49 of 202
The Ring programming language version 1.8 book - Part 49 of 202The Ring programming language version 1.8 book - Part 49 of 202
The Ring programming language version 1.8 book - Part 49 of 202Mahmoud Samir Fayed
 
The Ring programming language version 1.7 book - Part 48 of 196
The Ring programming language version 1.7 book - Part 48 of 196The Ring programming language version 1.7 book - Part 48 of 196
The Ring programming language version 1.7 book - Part 48 of 196Mahmoud Samir Fayed
 
The Ring programming language version 1.4.1 book - Part 13 of 31
The Ring programming language version 1.4.1 book - Part 13 of 31The Ring programming language version 1.4.1 book - Part 13 of 31
The Ring programming language version 1.4.1 book - Part 13 of 31Mahmoud Samir Fayed
 
The Ring programming language version 1.3 book - Part 34 of 88
The Ring programming language version 1.3 book - Part 34 of 88The Ring programming language version 1.3 book - Part 34 of 88
The Ring programming language version 1.3 book - Part 34 of 88Mahmoud Samir Fayed
 

Semelhante a interfaz (20)

The Ring programming language version 1.5.1 book - Part 44 of 180
The Ring programming language version 1.5.1 book - Part 44 of 180The Ring programming language version 1.5.1 book - Part 44 of 180
The Ring programming language version 1.5.1 book - Part 44 of 180
 
The Ring programming language version 1.9 book - Part 54 of 210
The Ring programming language version 1.9 book - Part 54 of 210The Ring programming language version 1.9 book - Part 54 of 210
The Ring programming language version 1.9 book - Part 54 of 210
 
PART 5: RASTER DATA
PART 5: RASTER DATAPART 5: RASTER DATA
PART 5: RASTER DATA
 
The Ring programming language version 1.7 book - Part 16 of 196
The Ring programming language version 1.7 book - Part 16 of 196The Ring programming language version 1.7 book - Part 16 of 196
The Ring programming language version 1.7 book - Part 16 of 196
 
The Ring programming language version 1.6 book - Part 15 of 189
The Ring programming language version 1.6 book - Part 15 of 189The Ring programming language version 1.6 book - Part 15 of 189
The Ring programming language version 1.6 book - Part 15 of 189
 
The Ring programming language version 1.8 book - Part 74 of 202
The Ring programming language version 1.8 book - Part 74 of 202The Ring programming language version 1.8 book - Part 74 of 202
The Ring programming language version 1.8 book - Part 74 of 202
 
The Ring programming language version 1.5.2 book - Part 43 of 181
The Ring programming language version 1.5.2 book - Part 43 of 181The Ring programming language version 1.5.2 book - Part 43 of 181
The Ring programming language version 1.5.2 book - Part 43 of 181
 
4시간만에 따라해보는 Windows 10 앱 개발 샘플코드
4시간만에 따라해보는 Windows 10 앱 개발 샘플코드4시간만에 따라해보는 Windows 10 앱 개발 샘플코드
4시간만에 따라해보는 Windows 10 앱 개발 샘플코드
 
The Ring programming language version 1.9 book - Part 53 of 210
The Ring programming language version 1.9 book - Part 53 of 210The Ring programming language version 1.9 book - Part 53 of 210
The Ring programming language version 1.9 book - Part 53 of 210
 
The Ring programming language version 1.7 book - Part 72 of 196
The Ring programming language version 1.7 book - Part 72 of 196The Ring programming language version 1.7 book - Part 72 of 196
The Ring programming language version 1.7 book - Part 72 of 196
 
Pyimproved again
Pyimproved againPyimproved again
Pyimproved again
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Datagrids with Symfony 2, Backbone and Backgrid
Datagrids with Symfony 2, Backbone and BackgridDatagrids with Symfony 2, Backbone and Backgrid
Datagrids with Symfony 2, Backbone and Backgrid
 
Datagrids with Symfony 2, Backbone and Backgrid
Datagrids with Symfony 2, Backbone and BackgridDatagrids with Symfony 2, Backbone and Backgrid
Datagrids with Symfony 2, Backbone and Backgrid
 
Swift Tableview iOS App Development
Swift Tableview iOS App DevelopmentSwift Tableview iOS App Development
Swift Tableview iOS App Development
 
The Ring programming language version 1.8 book - Part 49 of 202
The Ring programming language version 1.8 book - Part 49 of 202The Ring programming language version 1.8 book - Part 49 of 202
The Ring programming language version 1.8 book - Part 49 of 202
 
The Ring programming language version 1.7 book - Part 48 of 196
The Ring programming language version 1.7 book - Part 48 of 196The Ring programming language version 1.7 book - Part 48 of 196
The Ring programming language version 1.7 book - Part 48 of 196
 
The Ring programming language version 1.4.1 book - Part 13 of 31
The Ring programming language version 1.4.1 book - Part 13 of 31The Ring programming language version 1.4.1 book - Part 13 of 31
The Ring programming language version 1.4.1 book - Part 13 of 31
 
Scala on Your Phone
Scala on Your PhoneScala on Your Phone
Scala on Your Phone
 
The Ring programming language version 1.3 book - Part 34 of 88
The Ring programming language version 1.3 book - Part 34 of 88The Ring programming language version 1.3 book - Part 34 of 88
The Ring programming language version 1.3 book - Part 34 of 88
 

Mais de OfeCarrera

Eventos, excepciones y errores 2
Eventos, excepciones y errores 2Eventos, excepciones y errores 2
Eventos, excepciones y errores 2OfeCarrera
 
Eventos, excepciones y errores
Eventos, excepciones y erroresEventos, excepciones y errores
Eventos, excepciones y erroresOfeCarrera
 
Interfaz grafica
Interfaz graficaInterfaz grafica
Interfaz graficaOfeCarrera
 
Sistemas distribuidos
Sistemas distribuidosSistemas distribuidos
Sistemas distribuidosOfeCarrera
 
Interfaz Usuario
Interfaz UsuarioInterfaz Usuario
Interfaz UsuarioOfeCarrera
 
Interfaz de usuario
Interfaz de usuarioInterfaz de usuario
Interfaz de usuarioOfeCarrera
 
Interfaz usuario2
Interfaz usuario2Interfaz usuario2
Interfaz usuario2OfeCarrera
 

Mais de OfeCarrera (13)

Eventos, excepciones y errores 2
Eventos, excepciones y errores 2Eventos, excepciones y errores 2
Eventos, excepciones y errores 2
 
Eventos, excepciones y errores
Eventos, excepciones y erroresEventos, excepciones y errores
Eventos, excepciones y errores
 
Interfaz grafica
Interfaz graficaInterfaz grafica
Interfaz grafica
 
Sistemas distribuidos
Sistemas distribuidosSistemas distribuidos
Sistemas distribuidos
 
Interfaz Usuario
Interfaz UsuarioInterfaz Usuario
Interfaz Usuario
 
Interfaz de usuario
Interfaz de usuarioInterfaz de usuario
Interfaz de usuario
 
Interfaz usuario2
Interfaz usuario2Interfaz usuario2
Interfaz usuario2
 
Semana 8
Semana 8Semana 8
Semana 8
 
Casos de uso
Casos de usoCasos de uso
Casos de uso
 
Poliza
PolizaPoliza
Poliza
 
Segurosmvc
SegurosmvcSegurosmvc
Segurosmvc
 
Seguros mvc
Seguros mvcSeguros mvc
Seguros mvc
 
Seguros mvc
Seguros mvcSeguros mvc
Seguros mvc
 

Último

Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinojohnmickonozaleda
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 

Último (20)

Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipino
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 

interfaz

  • 1. File: /home/pubuntu/wxInterfaz.py Page 1 of 18 #!/usr/bin/env python # -*- coding: utf-8 -*- # generated by wxGlade 0.6.3 on Wed Dec 16 06:32:12 2009 import wx import wx.grid # begin wxGlade: extracode # end wxGlade class wxIngresarSistema(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: wxIngresarSistema.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) #Declarando variables self.lblUsuario = wx.StaticText(self, -1, "Usuario:") self.txtUsuario = wx.TextCtrl(self, -1, "") self.lblPassword = wx.StaticText(self, -1, "Password:") self.txtPassword = wx.TextCtrl(self, -1, "") self.btnAceptar = wx.Button(self, -1, "Entrar") self.__set_properties() self.__do_layout() # end wxGlade #Propiedades del frame def __set_properties(self): # begin wxGlade: wxIngresarSistema.__set_properties self.SetTitle("Login") # end wxGlade #Agregar controles al frame def __do_layout(self): # begin wxGlade: wxIngresarSistema.__do_layout sizer_39 = wx.BoxSizer(wx.VERTICAL) grid_sizer_16 = wx.GridSizer(3, 2, 0, 0) grid_sizer_16.Add(self.lblUsuario, 0, 0, 0) grid_sizer_16.Add(self.txtUsuario, 0, 0, 0) grid_sizer_16.Add(self.lblPassword, 0, 0, 0) grid_sizer_16.Add(self.txtPassword, 0, 0, 0) grid_sizer_16.Add(self.btnAceptar, 0, wx.ALIGN_RIGHT, 0) sizer_39.Add(grid_sizer_16, 1, wx.EXPAND, 0) self.SetSizer(sizer_39) sizer_39.Fit(self) self.Layout() # end wxGlade # end of class wxIngresarSistema class wxAltaPoliza(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: wxAltaPoliza.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) #Variables self.lblNumeroPoliza = wx.StaticText(self, -1, "Numero de Poliza:") self.txtNumeroPoliza = wx.TextCtrl(self, -1, "") self.lblCliente = wx.StaticText(self, -1, "Cliente:") #Establecer Textboxs con propiedad Readonly self.txtNumero = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY) self.txtNombre = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY) #Establecer texto del botón self.btnBuscar = wx.Button(self, -1, "Buscar")
  • 2. File: /home/pubuntu/wxInterfaz.py Page 2 of 18 self.lblCompania = wx.StaticText(self, -1, "Compania:n") self.cmbCompania = wx.ComboBox(self, -1, choices=[], style=wx.CB_DROPDOWN) self.lblTipoPoliza = wx.StaticText(self, -1, "Tipo Poliza:") self.cmbTipoPoliza = wx.ComboBox(self, -1, choices=[], style=wx.CB_DROPDOWN) self.lblFechaInicio = wx.StaticText(self, -1, "Fecha Inicio:") self.txtFechaInicio = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY) self.btnCalendario = wx.Button(self, -1, "Calendario") self.lblFechaFin = wx.StaticText(self, -1, "Fecha Fin:") self.text_ctrl_1 = wx.TextCtrl(self, -1, "", style=wx.TE_READONLY|wx.TE_RICH2) self.btnCalendario2 = wx.Button(self, -1, "Calendario") self.lblPrecio = wx.StaticText(self, -1, "Precio:") self.txtPrecio = wx.TextCtrl(self, -1, "") self.lblFormaPAgo = wx.StaticText(self, -1, "Forma Pago:n") self.cmbFormaPago = wx.ComboBox(self, -1, choices=[], style=wx.CB_DROPDOWN) self.lblCobertura = wx.StaticText(self, -1, "Cobertura:") self.cmbCobertura = wx.ComboBox(self, -1, choices=[], style=wx.CB_DROPDOWN) self.lblPolizaAnterior = wx.StaticText(self, -1, "Numero de Poliza Anterior:") self.txtNumeroPolizaAnterior = wx.TextCtrl(self, -1, "") self.btnbuscar2 = wx.Button(self, -1, "Buscar") self.lblBeneficiario = wx.StaticText(self, -1, "Beneficiario:") self.cmbBeneficiario = wx.ComboBox(self, -1, choices=[], style=wx.CB_DROPDOWN) self.btnBuscar3 = wx.Button(self, -1, "Buscar") self.btnAceptar = wx.Button(self, -1, "Aceptar") self.button_1 = wx.Button(self, -1, "Cancelar") self.__set_properties() self.__do_layout() # end wxGlade #Propiedades del frame def __set_properties(self): # begin wxGlade: wxAltaPoliza.__set_properties self.SetTitle("Alta Poliza") #Tamaño del Frame self.txtNombre.SetMinSize((140, 27)) # end wxGlade def __do_layout(self): # begin wxGlade: wxAltaPoliza.__do_layout sizer_1 = wx.BoxSizer(wx.VERTICAL) sizer_13 = wx.BoxSizer(wx.HORIZONTAL) sizer_12 = wx.BoxSizer(wx.HORIZONTAL) sizer_11 = wx.BoxSizer(wx.HORIZONTAL) sizer_10 = wx.BoxSizer(wx.HORIZONTAL) sizer_9 = wx.BoxSizer(wx.HORIZONTAL) sizer_8 = wx.BoxSizer(wx.HORIZONTAL) sizer_7 = wx.BoxSizer(wx.HORIZONTAL) sizer_6 = wx.BoxSizer(wx.HORIZONTAL) sizer_5 = wx.BoxSizer(wx.HORIZONTAL) sizer_4 = wx.BoxSizer(wx.HORIZONTAL) sizer_3 = wx.BoxSizer(wx.HORIZONTAL) sizer_2 = wx.BoxSizer(wx.HORIZONTAL) #Agregar elementos a los BoxSizer sizer_2.Add(self.lblNumeroPoliza, 0, wx.LEFT, 0) sizer_2.Add(self.txtNumeroPoliza, 0, 0, 0) sizer_1.Add(sizer_2, 1, wx.EXPAND, 0) sizer_3.Add(self.lblCliente, 0, wx.LEFT, 0) sizer_3.Add(self.txtNumero, 0, 0, 0) sizer_3.Add(self.txtNombre, 0, 0, 0) sizer_3.Add(self.btnBuscar, 0, 0, 0) sizer_1.Add(sizer_3, 1, wx.EXPAND, 0) sizer_4.Add(self.lblCompania, 0, 0, 0) sizer_4.Add(self.cmbCompania, 0, 0, 0) sizer_1.Add(sizer_4, 1, wx.EXPAND, 0) sizer_5.Add(self.lblTipoPoliza, 0, 0, 0) sizer_5.Add(self.cmbTipoPoliza, 0, 0, 0) sizer_1.Add(sizer_5, 1, wx.EXPAND, 0)
  • 3. File: /home/pubuntu/wxInterfaz.py Page 3 of 18 sizer_6.Add(self.lblFechaInicio, 0, 0, 0) sizer_6.Add(self.txtFechaInicio, 0, 0, 0) sizer_6.Add(self.btnCalendario, 0, 0, 0) sizer_1.Add(sizer_6, 1, wx.EXPAND, 0) sizer_7.Add(self.lblFechaFin, 0, 0, 0) sizer_7.Add(self.text_ctrl_1, 0, 0, 0) sizer_7.Add(self.btnCalendario2, 0, 0, 0) sizer_1.Add(sizer_7, 1, wx.EXPAND, 0) sizer_8.Add(self.lblPrecio, 0, 0, 0) sizer_8.Add(self.txtPrecio, 0, 0, 0) sizer_1.Add(sizer_8, 1, wx.EXPAND, 0) sizer_9.Add(self.lblFormaPAgo, 0, 0, 0) sizer_9.Add(self.cmbFormaPago, 0, 0, 0) sizer_1.Add(sizer_9, 1, wx.EXPAND, 0) sizer_10.Add(self.lblCobertura, 0, 0, 0) sizer_10.Add(self.cmbCobertura, 0, 0, 0) sizer_1.Add(sizer_10, 1, wx.EXPAND, 0) sizer_11.Add(self.lblPolizaAnterior, 0, 0, 0) sizer_11.Add(self.txtNumeroPolizaAnterior, 0, 0, 0) sizer_11.Add(self.btnbuscar2, 0, 0, 0) sizer_1.Add(sizer_11, 1, wx.EXPAND, 0) sizer_12.Add(self.lblBeneficiario, 0, 0, 0) sizer_12.Add(self.cmbBeneficiario, 0, 0, 0) sizer_12.Add(self.btnBuscar3, 0, 0, 0) sizer_1.Add(sizer_12, 1, wx.EXPAND, 0) sizer_13.Add((80, 20), 0, 0, 0) sizer_13.Add(self.btnAceptar, 0, 0, 0) sizer_13.Add(self.button_1, 0, 0, 0) sizer_13.Add((80, 20), 0, 0, 0) sizer_1.Add(sizer_13, 1, wx.EXPAND, 0) self.SetSizer(sizer_1) sizer_1.Fit(self) self.Layout() # end wxGlade # end of class wxAltaPoliza class wxListaUsuarios(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: wxListaUsuarios.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) self.btnAltaUsuario = wx.Button(self, -1, "Nuevo Usuario") self.grdUsuarios = wx.grid.Grid(self, -1, size=(1, 1)) self.__set_properties() self.__do_layout() # end wxGlade def __set_properties(self): # begin wxGlade: wxListaUsuarios.__set_properties self.SetTitle("Lista Usuarios") self.grdUsuarios.CreateGrid(10, 6) #Agregar elementos al Grid self.grdUsuarios.SetColLabelValue(0, "Username") self.grdUsuarios.SetColLabelValue(1, "Nombres") self.grdUsuarios.SetColLabelValue(2, "Apellido Paterno") self.grdUsuarios.SetColLabelValue(3, "Apellido Materno") self.grdUsuarios.SetColLabelValue(4, "") self.grdUsuarios.SetColLabelValue(5, "") # end wxGlade def __do_layout(self): # begin wxGlade: wxListaUsuarios.__do_layout sizer_14 = wx.BoxSizer(wx.VERTICAL) sizer_15 = wx.BoxSizer(wx.HORIZONTAL)
  • 4. File: /home/pubuntu/wxInterfaz.py Page 4 of 18 #Coordenadas del BoxSizer sizer_15.Add((70, 20), 0, 0, 0) #Alinear elementos del boxsizer sizer_15.Add(self.btnAltaUsuario, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 0) sizer_15.Add((70, 20), 0, 0, 0) sizer_14.Add(sizer_15, 1, wx.EXPAND, 0) sizer_14.Add(self.grdUsuarios, 1, wx.EXPAND, 0) self.SetSizer(sizer_14) sizer_14.Fit(self) self.Layout() # end wxGlade # end of class wxListaUsuarios class mnuCatalogos(wx.MenuBar): def __init__(self, *args, **kwds): # begin wxGlade: mnuCatalogos.__init__ wx.MenuBar.__init__(self, *args, **kwds) #Agregar opciones al menú self.lblAgente = wx.Menu() self.Append(self.lblAgente, "Agente") self.lblCompania = wx.Menu() self.Append(self.lblCompania, u"Compañía") self.lblTipoPoliza = wx.Menu() self.Append(self.lblTipoPoliza, "Tipo Poliza") self.lblCobertura = wx.Menu() self.Append(self.lblCobertura, "Cobertura") wxglade_tmp_menu = wx.Menu() self.Append(wxglade_tmp_menu, "Ayuda") self.__set_properties() self.__do_layout() # end wxGlade def __set_properties(self): # begin wxGlade: mnuCatalogos.__set_properties pass # end wxGlade def __do_layout(self): # begin wxGlade: mnuCatalogos.__do_layout pass # end wxGlade # end of class mnuCatalogos class mnuGeneral(wx.MenuBar): def __init__(self, *args, **kwds): # begin wxGlade: mnuGeneral.__init__ wx.MenuBar.__init__(self, *args, **kwds) #Opciones del menú self.lblUsuarios = wx.Menu() self.Append(self.lblUsuarios, "Usuarios") self.lblAyuda = wx.Menu() self.Append(self.lblAyuda, "Ayuda") self.__set_properties() self.__do_layout() # end wxGlade def __set_properties(self): # begin wxGlade: mnuGeneral.__set_properties pass # end wxGlade
  • 5. File: /home/pubuntu/wxInterfaz.py Page 5 of 18 def __do_layout(self): # begin wxGlade: mnuGeneral.__do_layout pass # end wxGlade # end of class mnuGeneral class mnuPoliza(wx.MenuBar): def __init__(self, *args, **kwds): # begin wxGlade: mnuPoliza.__init__ wx.MenuBar.__init__(self, *args, **kwds) #Opciones del menú self.lblPoliza = wx.Menu() self.Append(self.lblPoliza, "Poliza") self.lblReportes = wx.Menu() self.Append(self.lblReportes, "Reportes") self.lblAyuda = wx.Menu() self.Append(self.lblAyuda, "Ayuda") self.__set_properties() self.__do_layout() # end wxGlade def __set_properties(self): # begin wxGlade: mnuPoliza.__set_properties pass # end wxGlade def __do_layout(self): # begin wxGlade: mnuPoliza.__do_layout pass # end wxGlade # end of class mnuPoliza class wxAltaUsuario(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: wxAltaUsuario.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) self.lblNombre = wx.StaticText(self, -1, "Nombre:") self.text_ctrl_2 = wx.TextCtrl(self, -1, "") self.lblApellidoPaterno = wx.StaticText(self, -1, "Apellido Paterno:") self.text_ctrl_3 = wx.TextCtrl(self, -1, "") self.lblApellidoMaterno = wx.StaticText(self, -1, "Apellido Materno:") self.text_ctrl_4 = wx.TextCtrl(self, -1, "") self.lblRol = wx.StaticText(self, -1, "Rol:") #Crear combobox y sus opciones (que en este caso se llenaran de Mysql self.combo_box_1 = wx.ComboBox(self, -1, choices=[], style=wx.CB_DROPDOWN) self.btnAceptar = wx.Button(self, -1, "Aceptar") self.btnCancelar = wx.Button(self, -1, "Cancelar") self.__set_properties() self.__do_layout() # end wxGlade def __set_properties(self): # begin wxGlade: wxAltaUsuario.__set_properties self.SetTitle("Alta Usuario") #Cambiar Tamaño de los Textboxs self.text_ctrl_2.SetMinSize((189, 27)) self.text_ctrl_3.SetMinSize((189, 27)) self.text_ctrl_4.SetMinSize((189, 27)) # end wxGlade
  • 6. File: /home/pubuntu/wxInterfaz.py Page 6 of 18 def __do_layout(self): # begin wxGlade: wxAltaUsuario.__do_layout sizer_16 = wx.BoxSizer(wx.VERTICAL) #Agregar elementos al BoxSizer grid_sizer_1 = wx.GridSizer(5, 2, 0, 0) grid_sizer_1.Add(self.lblNombre, 0, 0, 0) grid_sizer_1.Add(self.text_ctrl_2, 0, 0, 0) grid_sizer_1.Add(self.lblApellidoPaterno, 0, 0, 0) grid_sizer_1.Add(self.text_ctrl_3, 0, 0, 0) grid_sizer_1.Add(self.lblApellidoMaterno, 0, 0, 0) grid_sizer_1.Add(self.text_ctrl_4, 0, 0, 0) grid_sizer_1.Add(self.lblRol, 0, 0, 0) grid_sizer_1.Add(self.combo_box_1, 0, 0, 0) grid_sizer_1.Add(self.btnAceptar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0) grid_sizer_1.Add(self.btnCancelar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0) sizer_16.Add(grid_sizer_1, 1, wx.EXPAND, 0) self.SetSizer(sizer_16) sizer_16.Fit(self) self.Layout() # end wxGlade # end of class wxAltaUsuario class wxListaAgente(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: wxListaAgente.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) #Variables self.btnAltaAgente = wx.Button(self, -1, "Nuevo Agente") self.grdAgente = wx.grid.Grid(self, -1, size=(1, 1)) self.__set_properties() self.__do_layout() # end wxGlade def __set_properties(self): # begin wxGlade: wxListaAgente.__set_properties self.SetTitle("Lista Agentes") #Establecer elementos del grid self.grdAgente.CreateGrid(10, 6) self.grdAgente.SetColLabelValue(0, "Clave") self.grdAgente.SetColLabelValue(1, "Nombre") self.grdAgente.SetColLabelValue(2, "Apellido Paterno") self.grdAgente.SetColLabelValue(3, "Apellido Materno") self.grdAgente.SetColLabelValue(4, "") self.grdAgente.SetColLabelValue(5, "") # end wxGlade def __do_layout(self): # begin wxGlade: wxListaAgente.__do_layout sizer_17 = wx.BoxSizer(wx.VERTICAL) grid_sizer_2 = wx.GridSizer(2, 1, 0, 0) #Agregar los controles al BoxSizer grid_sizer_2.Add(self.btnAltaAgente, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 0) grid_sizer_2.Add(self.grdAgente, 1, wx.EXPAND, 0) sizer_17.Add(grid_sizer_2, 1, wx.EXPAND, 0) self.SetSizer(sizer_17) sizer_17.Fit(self) self.Layout() # end wxGlade # end of class wxListaAgente class wxAltaAgente(wx.Frame):
  • 7. File: /home/pubuntu/wxInterfaz.py Page 7 of 18 def __init__(self, *args, **kwds): # begin wxGlade: wxAltaAgente.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) #Variables self.lblClave = wx.StaticText(self, -1, "Clave:") self.txtClave = wx.TextCtrl(self, -1, "") self.lblNombre = wx.StaticText(self, -1, "Nombre:") self.txtNombre = wx.TextCtrl(self, -1, "") self.lblApellidoPaterno = wx.StaticText(self, -1, "Apellido Paterno:") self.txtApPaterno = wx.TextCtrl(self, -1, "") self.lblApMaterno = wx.StaticText(self, -1, "Apellido Materno:") self.txtApMaterno = wx.TextCtrl(self, -1, "") self.btnAceptar = wx.Button(self, -1, "Aceptar") self.btnCancelar = wx.Button(self, -1, "Cancelar") self.__set_properties() self.__do_layout() # end wxGlade def __set_properties(self): # begin wxGlade: wxAltaAgente.__set_properties #Titulo del Frame self.SetTitle("Alta Agente") #Propiedades de los controles textbox self.txtNombre.SetMinSize((189, 27)) self.txtApPaterno.SetMinSize((189, 27)) self.txtApMaterno.SetMinSize((189, 27)) # end wxGlade def __do_layout(self): # begin wxGlade: wxAltaAgente.__do_layout sizer_18 = wx.BoxSizer(wx.VERTICAL) #Agregar elementos al BoxSizer grid_sizer_3 = wx.GridSizer(5, 2, 0, 0) grid_sizer_3.Add(self.lblClave, 0, 0, 0) grid_sizer_3.Add(self.txtClave, 0, 0, 0) grid_sizer_3.Add(self.lblNombre, 0, 0, 0) grid_sizer_3.Add(self.txtNombre, 0, 0, 0) grid_sizer_3.Add(self.lblApellidoPaterno, 0, 0, 0) grid_sizer_3.Add(self.txtApPaterno, 0, 0, 0) grid_sizer_3.Add(self.lblApMaterno, 0, 0, 0) grid_sizer_3.Add(self.txtApMaterno, 0, 0, 0) grid_sizer_3.Add(self.btnAceptar, 0, 0, 0) grid_sizer_3.Add(self.btnCancelar, 0, 0, 0) sizer_18.Add(grid_sizer_3, 1, wx.EXPAND, 0) self.SetSizer(sizer_18) sizer_18.Fit(self) self.Layout() # end wxGlade # end of class wxAltaAgente class wxAltaCompania(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: wxAltaCompania.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) #Variables self.lblNombre = wx.StaticText(self, -1, "Nombre:") self.txtNombre = wx.TextCtrl(self, -1, "") self.lblDescripcion = wx.StaticText(self, -1, "Descripcion:") self.txtDescripcion = wx.TextCtrl(self, -1, "") self.btnAceptar = wx.Button(self, -1, "Aceptar") self.btnCancelar = wx.Button(self, -1, "Cancelar")
  • 8. File: /home/pubuntu/wxInterfaz.py Page 8 of 18 self.__set_properties() self.__do_layout() # end wxGlade def __set_properties(self): # begin wxGlade: wxAltaCompania.__set_properties #Establecer propiedades de controles self.SetTitle(u"Alta Compañia") self.txtNombre.SetMinSize((189, 27)) self.txtDescripcion.SetMinSize((189, 27)) # end wxGlade def __do_layout(self): # begin wxGlade: wxAltaCompania.__do_layout sizer_19 = wx.BoxSizer(wx.VERTICAL) #Agregar controles al BoxSizer grid_sizer_4 = wx.GridSizer(3, 2, 0, 0) grid_sizer_4.Add(self.lblNombre, 0, 0, 0) grid_sizer_4.Add(self.txtNombre, 0, 0, 0) grid_sizer_4.Add(self.lblDescripcion, 0, 0, 0) grid_sizer_4.Add(self.txtDescripcion, 0, 0, 0) grid_sizer_4.Add(self.btnAceptar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0) grid_sizer_4.Add(self.btnCancelar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0) sizer_19.Add(grid_sizer_4, 1, wx.EXPAND, 0) self.SetSizer(sizer_19) sizer_19.Fit(self) self.Layout() # end wxGlade # end of class wxAltaCompania class wxListaCompania(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: wxListaCompania.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) #Variables self.btnNuevaCompania = wx.Button(self, -1, u"Nueva Compañia") self.grid_1 = wx.grid.Grid(self, -1, size=(1, 1)) self.__set_properties() self.__do_layout() # end wxGlade def __set_properties(self): # begin wxGlade: wxListaCompania.__set_properties #Propiedades self.SetTitle(u"Lista Compañia") self.grid_1.CreateGrid(10, 2) self.grid_1.SetColLabelValue(0, "Nombre") self.grid_1.SetColLabelValue(1, "Descripcion") # end wxGlade def __do_layout(self): # begin wxGlade: wxListaCompania.__do_layout sizer_20 = wx.BoxSizer(wx.VERTICAL) grid_sizer_5 = wx.GridSizer(2, 1, 0, 0) #Agregar elementos al boxsizer grid_sizer_5.Add(self.btnNuevaCompania, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 0) grid_sizer_5.Add(self.grid_1, 1, wx.EXPAND, 0) sizer_20.Add(grid_sizer_5, 1, wx.EXPAND, 0) self.SetSizer(sizer_20) sizer_20.Fit(self) self.Layout() # end wxGlade
  • 9. File: /home/pubuntu/wxInterfaz.py Page 9 of 18 # end of class wxListaCompania class wxListaTipoPoliza(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: wxListaTipoPoliza.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) #Variables self.btnNuevoTipoPoliza = wx.Button(self, -1, "Nuevo Tipo Poliza") self.grdTipoPoliza = wx.grid.Grid(self, -1, size=(1, 1)) self.__set_properties() self.__do_layout() # end wxGlade def __set_properties(self): # begin wxGlade: wxListaTipoPoliza.__set_properties self.SetTitle("Lista Tipo Poliza") #Propiedades del Grid self.grdTipoPoliza.CreateGrid(10, 2) self.grdTipoPoliza.SetColLabelValue(0, "Id") self.grdTipoPoliza.SetColLabelValue(1, "Tipo Poliza") # end wxGlade def __do_layout(self): # begin wxGlade: wxListaTipoPoliza.__do_layout sizer_21 = wx.BoxSizer(wx.VERTICAL) grid_sizer_6 = wx.GridSizer(2, 1, 0, 0) #Agregar controles al boxsizer grid_sizer_6.Add(self.btnNuevoTipoPoliza, 0, wx.ALIGN_CENTER_HORIZONTAL|wx.ALIGN_CENTER_VERTICAL, 0) grid_sizer_6.Add(self.grdTipoPoliza, 1, wx.EXPAND, 0) sizer_21.Add(grid_sizer_6, 1, wx.EXPAND, 0) self.SetSizer(sizer_21) sizer_21.Fit(self) self.Layout() # end wxGlade # end of class wxListaTipoPoliza class wxAltaTipoPoliza(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: wxAltaTipoPoliza.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) #Variables self.lblDescripcion = wx.StaticText(self, -1, u"Descripción:") self.txtTipoPoliza = wx.TextCtrl(self, -1, "") self.btnAceptar = wx.Button(self, -1, "Aceptar") self.btnCancelar = wx.Button(self, -1, "Cancelar") self.__set_properties() self.__do_layout() # end wxGlade def __set_properties(self): # begin wxGlade: wxAltaTipoPoliza.__set_properties #Establecer propiedades self.SetTitle("Alta Tipo Poliza") self.txtTipoPoliza.SetMinSize((189, 27)) self.btnCancelar.SetMinSize((85, 32)) # end wxGlade def __do_layout(self): # begin wxGlade: wxAltaTipoPoliza.__do_layout
  • 10. File: /home/pubuntu/wxInterfaz.py Page 10 of 18 sizer_22 = wx.BoxSizer(wx.VERTICAL) grid_sizer_7 = wx.GridSizer(2, 2, 0, 0) #Agregar elementos al boxsizer grid_sizer_7.Add(self.lblDescripcion, 0, 0, 0) grid_sizer_7.Add(self.txtTipoPoliza, 0, 0, 0) grid_sizer_7.Add(self.btnAceptar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0) grid_sizer_7.Add(self.btnCancelar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0) sizer_22.Add(grid_sizer_7, 1, wx.EXPAND, 0) self.SetSizer(sizer_22) sizer_22.Fit(self) self.Layout() # end wxGlade # end of class wxAltaTipoPoliza class wxCobertura(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: wxCobertura.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) #Variables self.btnNuevaCobertura = wx.Button(self, -1, "Nueva Cobertura") self.grdCobertura = wx.grid.Grid(self, -1, size=(1, 1)) self.__set_properties() self.__do_layout() # end wxGlade def __set_properties(self): # begin wxGlade: wxCobertura.__set_properties #Propiedades self.SetTitle("Lista Cobertura") self.grdCobertura.CreateGrid(10, 4) self.grdCobertura.SetColLabelValue(0, "Descripcion") self.grdCobertura.SetColLabelValue(1, "Tipo Poliza") self.grdCobertura.SetColLabelValue(2, "") self.grdCobertura.SetColLabelValue(3, "") # end wxGlade def __do_layout(self): # begin wxGlade: wxCobertura.__do_layout #Agregar elementos al boxsizer sizer_23 = wx.BoxSizer(wx.VERTICAL) grid_sizer_8 = wx.GridSizer(1, 1, 0, 0) grid_sizer_8.Add(self.btnNuevaCobertura, 0, wx.ALIGN_CENTER_HORIZONTAL, 0) grid_sizer_8.Add(self.grdCobertura, 1, wx.EXPAND, 0) sizer_23.Add(grid_sizer_8, 1, wx.EXPAND, 0) self.SetSizer(sizer_23) sizer_23.Fit(self) self.Layout() # end wxGlade # end of class wxCobertura class wxAltaCobertura(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: wxAltaCobertura.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) #Variables self.lblDescripcion = wx.StaticText(self, -1, u"Descripción:") self.ttxtDescripcion = wx.TextCtrl(self, -1, "") self.lblTipoPoliza = wx.StaticText(self, -1, "Tipo de Poliza:") self.combo_box_2 = wx.ComboBox(self, -1, choices=[], style=wx.CB_DROPDOWN) self.btnAceptar = wx.Button(self, -1, "Aceptar")
  • 11. File: /home/pubuntu/wxInterfaz.py Page 11 of 18 self.btnCancelar = wx.Button(self, -1, "Cancelar") self.__set_properties() self.__do_layout() # end wxGlade def __set_properties(self): # begin wxGlade: wxAltaCobertura.__set_properties #propiedades self.SetTitle("Alta Cobertura") self.ttxtDescripcion.SetMinSize((189, 27)) # end wxGlade def __do_layout(self): # begin wxGlade: wxAltaCobertura.__do_layout sizer_24 = wx.BoxSizer(wx.VERTICAL) grid_sizer_9 = wx.GridSizer(3, 2, 0, 0) #Agregar elementos al boxsizer grid_sizer_9.Add(self.lblDescripcion, 0, 0, 0) grid_sizer_9.Add(self.ttxtDescripcion, 0, 0, 0) grid_sizer_9.Add(self.lblTipoPoliza, 0, 0, 0) grid_sizer_9.Add(self.combo_box_2, 0, 0, 0) grid_sizer_9.Add(self.btnAceptar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0) grid_sizer_9.Add(self.btnCancelar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0) sizer_24.Add(grid_sizer_9, 1, wx.EXPAND, 0) self.SetSizer(sizer_24) sizer_24.Fit(self) self.Layout() # end wxGlade # end of class wxAltaCobertura class wxPolizaVida(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: wxPolizaVida.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) #Variables self.lblNumeroPoliza = wx.StaticText(self, -1, "Numero Poliza:") self.txtNumeroPoliza = wx.TextCtrl(self, -1, "") self.label_1 = wx.StaticText(self, -1, "Asegurado:") self.lblNombre = wx.StaticText(self, -1, "Nombre:") self.txtNombre = wx.TextCtrl(self, -1, "") self.lblApellidoPaterno = wx.StaticText(self, -1, "Apellido Paterno:") self.txtApellidoPaterno = wx.TextCtrl(self, -1, "") self.lblApellidoMaterno = wx.StaticText(self, -1, "Apellido Materno:") self.txtApellidoMaterno = wx.TextCtrl(self, -1, "") self.lblRFC = wx.StaticText(self, -1, "RFC:") self.txtRFC = wx.TextCtrl(self, -1, "") self.label_2 = wx.StaticText(self, -1, "Fecha Nacimiento:") self.cmbDia = wx.ComboBox(self, -1, choices=["Dia"], style=wx.CB_DROPDOWN) self.cmbMes = wx.ComboBox(self, -1, choices=["Mes"], style=wx.CB_DROPDOWN) self.cmbAnio = wx.ComboBox(self, -1, choices=[""], style=wx.CB_DROPDOWN) self.lblCalle = wx.StaticText(self, -1, "Calle:") self.txtCalle = wx.TextCtrl(self, -1, "") self.lblColonia = wx.StaticText(self, -1, "Colonia:") self.txtColonia = wx.TextCtrl(self, -1, "") self.lblMunicipio = wx.StaticText(self, -1, "Municipio:") self.txtMunicipio = wx.TextCtrl(self, -1, "") self.lblEstado = wx.StaticText(self, -1, "Estado:") self.txtEstado = wx.TextCtrl(self, -1, "") self.lblTelefono = wx.StaticText(self, -1, u"Teléfono:") self.txtTelefono = wx.TextCtrl(self, -1, "") self.lblCP = wx.StaticText(self, -1, "CP:") self.txtCP = wx.TextCtrl(self, -1, "") self.btAceptar = wx.Button(self, -1, "Aceptar")
  • 12. File: /home/pubuntu/wxInterfaz.py Page 12 of 18 self.btnCancelar = wx.Button(self, -1, "Cancelar") self.__set_properties() self.__do_layout() # end wxGlade def __set_properties(self): # begin wxGlade: wxPolizaVida.__set_properties #Establecer Propiedades self.SetTitle("AltaPolizaVida") self.txtNombre.SetMinSize((189, 27)) self.txtApellidoPaterno.SetMinSize((189, 27)) self.txtApellidoMaterno.SetMinSize((189, 27)) self.txtRFC.SetMinSize((189, 27)) self.cmbDia.SetMinSize((60, 29)) self.cmbDia.SetSelection(0) self.cmbMes.SetMinSize((80, 29)) self.cmbMes.SetSelection(-1) self.cmbAnio.SetMinSize((70, 29)) #Elemento seleccionado del combo self.cmbAnio.SetSelection(-1) self.txtCalle.SetMinSize((189, 27)) self.txtColonia.SetMinSize((189, 27)) self.txtMunicipio.SetMinSize((189, 27)) self.txtEstado.SetMinSize((189, 27)) # end wxGlade def __do_layout(self): # begin wxGlade: wxPolizaVida.__do_layout sizer_25 = wx.BoxSizer(wx.VERTICAL) grid_sizer_10 = wx.GridSizer(15, 2, 0, 0) sizer_26 = wx.BoxSizer(wx.HORIZONTAL) #Agregar elementos al boxsizer grid_sizer_10.Add(self.lblNumeroPoliza, 0, 0, 0) grid_sizer_10.Add(self.txtNumeroPoliza, 0, 0, 0) grid_sizer_10.Add(self.label_1, 0, 0, 0) grid_sizer_10.Add((189, 20), 0, 0, 0) grid_sizer_10.Add(self.lblNombre, 0, 0, 0) grid_sizer_10.Add(self.txtNombre, 0, 0, 0) grid_sizer_10.Add(self.lblApellidoPaterno, 0, 0, 0) grid_sizer_10.Add(self.txtApellidoPaterno, 0, 0, 0) grid_sizer_10.Add(self.lblApellidoMaterno, 0, 0, 0) grid_sizer_10.Add(self.txtApellidoMaterno, 0, 0, 0) grid_sizer_10.Add(self.lblRFC, 0, 0, 0) grid_sizer_10.Add(self.txtRFC, 0, 0, 0) grid_sizer_10.Add(self.label_2, 0, 0, 0) sizer_26.Add(self.cmbDia, 0, 0, 0) sizer_26.Add(self.cmbMes, 0, 0, 0) sizer_26.Add(self.cmbAnio, 0, 0, 0) grid_sizer_10.Add(sizer_26, 1, wx.EXPAND, 0) grid_sizer_10.Add(self.lblCalle, 0, 0, 0) grid_sizer_10.Add(self.txtCalle, 0, 0, 0) grid_sizer_10.Add(self.lblColonia, 0, 0, 0) grid_sizer_10.Add(self.txtColonia, 0, 0, 0) grid_sizer_10.Add(self.lblMunicipio, 0, 0, 0) grid_sizer_10.Add(self.txtMunicipio, 0, 0, 0) grid_sizer_10.Add(self.lblEstado, 0, 0, 0) grid_sizer_10.Add(self.txtEstado, 0, 0, 0) grid_sizer_10.Add(self.lblTelefono, 0, 0, 0) grid_sizer_10.Add(self.txtTelefono, 0, 0, 0) grid_sizer_10.Add(self.lblCP, 0, 0, 0) grid_sizer_10.Add(self.txtCP, 0, 0, 0) grid_sizer_10.Add(self.btAceptar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0) grid_sizer_10.Add(self.btnCancelar, 0, 0, 0) sizer_25.Add(grid_sizer_10, 1, wx.EXPAND, 0) self.SetSizer(sizer_25) sizer_25.Fit(self)
  • 13. File: /home/pubuntu/wxInterfaz.py Page 13 of 18 self.Layout() # end wxGlade # end of class wxPolizaVida class wxPolizaCasa(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: wxPolizaCasa.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) #variables self.lblNumeroPoliza = wx.StaticText(self, -1, "Numero Poliza:") self.txtNumeroPoliza = wx.TextCtrl(self, -1, "") self.lblSumaAsegurada = wx.StaticText(self, -1, "Suma Asegurada:") self.txtAsegurada = wx.TextCtrl(self, -1, "") self.lblCalle = wx.StaticText(self, -1, "Calle:") self.txtCalle = wx.TextCtrl(self, -1, "") self.label_3 = wx.StaticText(self, -1, "Numero:") self.txtNumero = wx.TextCtrl(self, -1, "") self.lblColonia = wx.StaticText(self, -1, "Colonia:") self.txtColonia = wx.TextCtrl(self, -1, "") self.lblCP = wx.StaticText(self, -1, "CP:") self.txtCP = wx.TextCtrl(self, -1, "") self.lblMunicipio = wx.StaticText(self, -1, "Municipio:") self.txtMunicipio = wx.TextCtrl(self, -1, "") self.lblEstado = wx.StaticText(self, -1, "Estado:") self.txtEstado = wx.TextCtrl(self, -1, "") self.lblNumeroNiveles = wx.StaticText(self, -1, "Numero Niveles:") self.txtNumeroNiveles = wx.TextCtrl(self, -1, "") self.lblSotano = wx.StaticText(self, -1, u"Sotáno") self.chkSotano = wx.CheckBox(self, -1, "Si") self.lblHabitada = wx.StaticText(self, -1, "Habitada") self.chkHabitada = wx.CheckBox(self, -1, "Si") self.lblObservaciones = wx.StaticText(self, -1, "Observaciones:") self.txtObservaciones = wx.TextCtrl(self, -1, "") self.btnAceptar = wx.Button(self, -1, "Aceptar") self.btnCancelar = wx.Button(self, -1, "Cancelar") self.__set_properties() self.__do_layout() # end wxGlade def __set_properties(self): # begin wxGlade: wxPolizaCasa.__set_properties #Propiedades self.SetTitle("AltaPolizaCasa") self.txtCalle.SetMinSize((189, 27)) self.txtColonia.SetMinSize((189, 27)) self.txtMunicipio.SetMinSize((189, 27)) self.txtEstado.SetMinSize((189, 27)) self.txtObservaciones.SetMinSize((189, 27)) # end wxGlade def __do_layout(self): # begin wxGlade: wxPolizaCasa.__do_layout #Agregar elementos al boxsizer sizer_27 = wx.BoxSizer(wx.VERTICAL) grid_sizer_11 = wx.GridSizer(14, 2, 0, 0) grid_sizer_11.Add(self.lblNumeroPoliza, 0, 0, 0) grid_sizer_11.Add(self.txtNumeroPoliza, 0, 0, 0) grid_sizer_11.Add(self.lblSumaAsegurada, 0, 0, 0) grid_sizer_11.Add(self.txtAsegurada, 0, 0, 0) grid_sizer_11.Add(self.lblCalle, 0, 0, 0) grid_sizer_11.Add(self.txtCalle, 0, 0, 0) grid_sizer_11.Add(self.label_3, 0, 0, 0) grid_sizer_11.Add(self.txtNumero, 0, 0, 0)
  • 14. File: /home/pubuntu/wxInterfaz.py Page 14 of 18 grid_sizer_11.Add(self.lblColonia, 0, 0, 0) grid_sizer_11.Add(self.txtColonia, 0, 0, 0) grid_sizer_11.Add(self.lblCP, 0, 0, 0) grid_sizer_11.Add(self.txtCP, 0, 0, 0) grid_sizer_11.Add(self.lblMunicipio, 0, 0, 0) grid_sizer_11.Add(self.txtMunicipio, 0, 0, 0) grid_sizer_11.Add(self.lblEstado, 0, 0, 0) grid_sizer_11.Add(self.txtEstado, 0, 0, 0) grid_sizer_11.Add(self.lblNumeroNiveles, 0, 0, 0) grid_sizer_11.Add(self.txtNumeroNiveles, 0, 0, 0) grid_sizer_11.Add(self.lblSotano, 0, 0, 0) grid_sizer_11.Add(self.chkSotano, 0, 0, 0) grid_sizer_11.Add(self.lblHabitada, 0, 0, 0) grid_sizer_11.Add(self.chkHabitada, 0, 0, 0) grid_sizer_11.Add(self.lblObservaciones, 0, 0, 0) grid_sizer_11.Add(self.txtObservaciones, 0, 0, 0) grid_sizer_11.Add(self.btnAceptar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0) grid_sizer_11.Add(self.btnCancelar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0) sizer_27.Add(grid_sizer_11, 1, wx.EXPAND, 0) self.SetSizer(sizer_27) sizer_27.Fit(self) self.Layout() # end wxGlade # end of class wxPolizaCasa class wxPolizaVehiculo(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: wxPolizaVehiculo.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) #Variables self.lblNumeroPoliza = wx.StaticText(self, -1, "Numero Poliza:") self.text_ctrl_9 = wx.TextCtrl(self, -1, "") self.lblAsegurado = wx.StaticText(self, -1, "Asegurado:") self.cmbAsegurado = wx.ComboBox(self, -1, choices=[], style=wx.CB_DROPDOWN) self.label_4 = wx.StaticText(self, -1, "Vehiculo:") self.lblClaveSBG = wx.StaticText(self, -1, "Clave SBG:") self.txtClaveSBG = wx.TextCtrl(self, -1, "") self.lblMarca = wx.StaticText(self, -1, "Marca:") self.txtMarca = wx.TextCtrl(self, -1, "") self.lblTipo = wx.StaticText(self, -1, "Tipo:") self.txtTipo = wx.TextCtrl(self, -1, "") self.lblModelo = wx.StaticText(self, -1, "Modelo:") self.txtModelo = wx.TextCtrl(self, -1, "") self.lblPlacas = wx.StaticText(self, -1, "Placas:") self.txtPlacas = wx.TextCtrl(self, -1, "") self.lblNumeroSerie = wx.StaticText(self, -1, "Numero Serie:") self.txtNumeroSerie = wx.TextCtrl(self, -1, "") self.lblNumeroMotor = wx.StaticText(self, -1, "Numero Motor:") self.txtNumeroMotor = wx.TextCtrl(self, -1, "") self.btnAceptar = wx.Button(self, -1, "Aceptar") self.btnCancelar = wx.Button(self, -1, "Cancelar") self.__set_properties() self.__do_layout() # end wxGlade def __set_properties(self): #Propiedades # begin wxGlade: wxPolizaVehiculo.__set_properties self.SetTitle("Alta Poliza Vehiculo") self.txtClaveSBG.SetMinSize((189, 27)) self.txtMarca.SetMinSize((189, 27)) self.txtTipo.SetMinSize((189, 27)) self.txtModelo.SetMinSize((189, 27))
  • 15. File: /home/pubuntu/wxInterfaz.py Page 15 of 18 self.txtPlacas.SetMinSize((189, 27)) self.txtNumeroSerie.SetMinSize((189, 27)) #Establecer tamaño minimo self.txtNumeroMotor.SetMinSize((189, 27)) # end wxGlade def __do_layout(self): # begin wxGlade: wxPolizaVehiculo.__do_layout #Agregar contoles al boxsizer sizer_28 = wx.BoxSizer(wx.VERTICAL) grid_sizer_12 = wx.GridSizer(11, 2, 0, 0) grid_sizer_12.Add(self.lblNumeroPoliza, 0, 0, 0) grid_sizer_12.Add(self.text_ctrl_9, 0, 0, 0) grid_sizer_12.Add(self.lblAsegurado, 0, 0, 0) grid_sizer_12.Add(self.cmbAsegurado, 0, 0, 0) grid_sizer_12.Add(self.label_4, 0, 0, 0) grid_sizer_12.Add((189, 20), 0, 0, 0) grid_sizer_12.Add(self.lblClaveSBG, 0, 0, 0) grid_sizer_12.Add(self.txtClaveSBG, 0, 0, 0) grid_sizer_12.Add(self.lblMarca, 0, 0, 0) grid_sizer_12.Add(self.txtMarca, 0, 0, 0) grid_sizer_12.Add(self.lblTipo, 0, 0, 0) grid_sizer_12.Add(self.txtTipo, 0, 0, 0) grid_sizer_12.Add(self.lblModelo, 0, 0, 0) grid_sizer_12.Add(self.txtModelo, 0, 0, 0) grid_sizer_12.Add(self.lblPlacas, 0, 0, 0) grid_sizer_12.Add(self.txtPlacas, 0, 0, 0) grid_sizer_12.Add(self.lblNumeroSerie, 0, 0, 0) grid_sizer_12.Add(self.txtNumeroSerie, 0, 0, 0) grid_sizer_12.Add(self.lblNumeroMotor, 0, 0, 0) grid_sizer_12.Add(self.txtNumeroMotor, 0, 0, 0) grid_sizer_12.Add(self.btnAceptar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0) grid_sizer_12.Add(self.btnCancelar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0) sizer_28.Add(grid_sizer_12, 1, wx.EXPAND, 0) self.SetSizer(sizer_28) sizer_28.Fit(self) self.Layout() # end wxGlade # end of class wxPolizaVehiculo class wxAltaPolizaGastosMedicos(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: wxAltaPolizaGastosMedicos.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) #Variables self.lblNumeroPoliza = wx.StaticText(self, -1, "Numero Poliza:") self.txtNumeroPoliza = wx.TextCtrl(self, -1, "") self.lblAsegurados = wx.StaticText(self, -1, "Asegurados:") self.grgAsegurados = wx.grid.Grid(self, -1, size=(1, 1)) self.btnAgregarAsegurado = wx.Button(self, -1, "Agregar Asegurado") self.lblSumaAsegurada = wx.StaticText(self, -1, "Suma Asegurada:") self.text_ctrl_10 = wx.TextCtrl(self, -1, "") self.lblDeducible = wx.StaticText(self, -1, "Deducible:") self.txtDeducible = wx.TextCtrl(self, -1, "") self.btnAceptar = wx.Button(self, -1, "Aceptar") self.btnCancelar = wx.Button(self, -1, "Cancelar") self.__set_properties() self.__do_layout() # end wxGlade def __set_properties(self): #Establecer propiedades # begin wxGlade: wxAltaPolizaGastosMedicos.__set_properties
  • 16. File: /home/pubuntu/wxInterfaz.py Page 16 of 18 self.SetTitle("Alta Poliza Gastos Medicos") self.grgAsegurados.CreateGrid(2, 2) self.grgAsegurados.SetColLabelValue(0, "Asegurado") self.grgAsegurados.SetColLabelValue(1, "Parentezco") # end wxGlade def __do_layout(self): # begin wxGlade: wxAltaPolizaGastosMedicos.__do_layout sizer_29 = wx.BoxSizer(wx.VERTICAL) grid_sizer_13 = wx.GridSizer(7, 2, 0, 0) #Agregar controles al grid grid_sizer_13.Add(self.lblNumeroPoliza, 0, 0, 0) grid_sizer_13.Add(self.txtNumeroPoliza, 0, 0, 0) grid_sizer_13.Add(self.lblAsegurados, 0, 0, 0) grid_sizer_13.Add((189, 20), 0, 0, 0) grid_sizer_13.Add(self.grgAsegurados, 1, wx.EXPAND, 0) grid_sizer_13.Add(self.btnAgregarAsegurado, 0, 0, 0) grid_sizer_13.Add(self.lblSumaAsegurada, 0, 0, 0) grid_sizer_13.Add(self.text_ctrl_10, 0, 0, 0) grid_sizer_13.Add(self.lblDeducible, 0, 0, 0) grid_sizer_13.Add(self.txtDeducible, 0, 0, 0) grid_sizer_13.Add(self.btnAceptar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0) grid_sizer_13.Add(self.btnCancelar, 0, wx.ALIGN_CENTER_HORIZONTAL, 0) sizer_29.Add(grid_sizer_13, 1, wx.EXPAND, 0) self.SetSizer(sizer_29) sizer_29.Fit(self) self.Layout() # end wxGlade # end of class wxAltaPolizaGastosMedicos class wxListaPoliza(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: wxListaPoliza.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) #Variables self.btnAltaPoliza = wx.Button(self, -1, "Nueva Poliza") self.lblFiltrar = wx.StaticText(self, -1, "Filtrar Por:") self.cmbTipoPoliza = wx.ComboBox(self, -1, choices=["Poliza Vida", "Poliza Casa", "Poliza Vehiculo", "Poliza Gastos Medicos"], style=wx.CB_DROPDOWN) self.grdPoliza = wx.grid.Grid(self, -1, size=(1, 1)) self.__set_properties() self.__do_layout() # end wxGlade def __set_properties(self): # begin wxGlade: wxListaPoliza.__set_properties #establecer propiedades self.SetTitle("Lista Polizas") self.cmbTipoPoliza.SetSelection(-1) self.grdPoliza.CreateGrid(10, 7) #Elementos del Grid self.grdPoliza.SetColLabelValue(0, "Numero") self.grdPoliza.SetColLabelValue(1, "Agente") self.grdPoliza.SetColLabelValue(2, "Cliente") self.grdPoliza.SetColLabelValue(3, "Compania") self.grdPoliza.SetColLabelValue(4, "Tipo Poliza") self.grdPoliza.SetColLabelValue(5, "Precio") self.grdPoliza.SetColLabelValue(6, "Detalles") # end wxGlade def __do_layout(self): # begin wxGlade: wxListaPoliza.__do_layout sizer_30 = wx.BoxSizer(wx.VERTICAL)
  • 17. File: /home/pubuntu/wxInterfaz.py Page 17 of 18 grid_sizer_14 = wx.GridSizer(3, 1, 0, 0) sizer_31 = wx.BoxSizer(wx.HORIZONTAL) grid_sizer_14.Add(self.btnAltaPoliza, 0, wx.ALIGN_CENTER_HORIZONTAL, 0) sizer_31.Add(self.lblFiltrar, 0, 0, 0) sizer_31.Add(self.cmbTipoPoliza, 0, 0, 0) grid_sizer_14.Add(sizer_31, 1, wx.EXPAND, 0) grid_sizer_14.Add(self.grdPoliza, 1, wx.EXPAND, 0) sizer_30.Add(grid_sizer_14, 1, wx.EXPAND, 0) self.SetSizer(sizer_30) sizer_30.Fit(self) self.Layout() # end wxGlade # end of class wxListaPoliza class wxReportes(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: wxReportes.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) #VAriables self.lblReportes = wx.StaticText(self, -1, "Reportes") self.chkUsuarios = wx.CheckBox(self, -1, "Usuarios del Sistema") self.chkAgentes = wx.CheckBox(self, -1, "Agentes") self.chkCompanias = wx.CheckBox(self, -1, u"Compañias") self.chkTipoPolizas = wx.CheckBox(self, -1, "Tipos de Polizas") self.chkCoberturas = wx.CheckBox(self, -1, "Coberturas") self.chkClientes = wx.CheckBox(self, -1, "Clientes") self.chkPolizas = wx.CheckBox(self, -1, "Polizas") self.rdbCliente = wx.RadioButton(self, -1, "Cliente en especifico") self.rdbAgente = wx.RadioButton(self, -1, "Agente en especifico") self.rdbCompania = wx.RadioButton(self, -1, u"Compañia en especifico") self.rdbTipoPoliza = wx.RadioButton(self, -1, "Poliza en especifico") self.rdbCobertura = wx.RadioButton(self, -1, "Cobertura en especifico") self.btnVerReporte = wx.Button(self, -1, "Ver Reporte") self.__set_properties() self.__do_layout() # end wxGlade def __set_properties(self): # begin wxGlade: wxReportes.__set_properties self.SetTitle("Reportes") # end wxGlade def __do_layout(self): # begin wxGlade: wxReportes.__do_layout sizer_32 = wx.BoxSizer(wx.VERTICAL) grid_sizer_15 = wx.GridSizer(14, 1, 0, 0) sizer_38 = wx.BoxSizer(wx.HORIZONTAL) sizer_37 = wx.BoxSizer(wx.HORIZONTAL) sizer_36 = wx.BoxSizer(wx.HORIZONTAL) sizer_35 = wx.BoxSizer(wx.HORIZONTAL) sizer_34 = wx.BoxSizer(wx.HORIZONTAL) sizer_33 = wx.BoxSizer(wx.HORIZONTAL) #Agregar controles al boxsizer grid_sizer_15.Add(self.lblReportes, 0, wx.ALIGN_CENTER_HORIZONTAL, 0) grid_sizer_15.Add(self.chkUsuarios, 0, 0, 0) grid_sizer_15.Add(self.chkAgentes, 0, 0, 0) grid_sizer_15.Add(self.chkCompanias, 0, 0, 0) grid_sizer_15.Add(self.chkTipoPolizas, 0, 0, 0) grid_sizer_15.Add(self.chkCoberturas, 0, 0, 0) grid_sizer_15.Add(self.chkClientes, 0, 0, 0) grid_sizer_15.Add(self.chkPolizas, 0, 0, 0) sizer_33.Add((20, 20), 0, 0, 0) sizer_33.Add(self.rdbCliente, 0, 0, 0)
  • 18. File: /home/pubuntu/wxInterfaz.py Page 18 of 18 grid_sizer_15.Add(sizer_33, 1, wx.EXPAND, 0) sizer_34.Add((20, 20), 0, 0, 0) #Agregar radiobutton sizer_34.Add(self.rdbAgente, 0, 0, 0) grid_sizer_15.Add(sizer_34, 1, wx.EXPAND, 0) sizer_35.Add((20, 20), 0, 0, 0) sizer_35.Add(self.rdbCompania, 0, 0, 0) grid_sizer_15.Add(sizer_35, 1, wx.EXPAND, 0) sizer_36.Add((20, 20), 0, 0, 0) sizer_36.Add(self.rdbTipoPoliza, 0, 0, 0) grid_sizer_15.Add(sizer_36, 1, wx.EXPAND, 0) sizer_37.Add((20, 20), 0, 0, 0) sizer_37.Add(self.rdbCobertura, 0, 0, 0) grid_sizer_15.Add(sizer_37, 1, wx.EXPAND, 0) sizer_38.Add(self.btnVerReporte, 0, wx.ALIGN_CENTER_HORIZONTAL, 0) grid_sizer_15.Add(sizer_38, 1, wx.EXPAND, 0) sizer_32.Add(grid_sizer_15, 1, wx.EXPAND, 0) self.SetSizer(sizer_32) sizer_32.Fit(self) self.Layout() # end wxGlade # end of class wxReportes if __name__ == "__main__": app = wx.PySimpleApp(0) wx.InitAllImageHandlers() AltaPoliza = wxAltaPoliza(None, -1, "") app.SetTopWindow(AltaPoliza) #mostrar frame alta poliza AltaPoliza.Show() app.MainLoop()