def __init__(self, frame_father): super(AnadirReservaSerie, self).__init__() self.xml = xrc.XmlResource('../View/anadir_reserva_serie.xml') self.frame = self.xml.LoadFrame(None, 'Frame_Anadir_Reserva') self.panel = xrc.XRCCTRL(self.frame, 'AnadirReserva_Panel') self.id_cliente = xrc.XRCCTRL(self.panel, 'Textctrl_ID_Cliente') self.id_serie = xrc.XRCCTRL(self.panel, 'Textctrl_ID_Serie') self.button_anadir = xrc.XRCCTRL(self.panel, 'wxID_OK') self.button_cancelar = xrc.XRCCTRL(self.panel, 'wxID_CANCEL') self.frame.SetIcon(wx.Icon("../view/System_Images/icon.png")) self.frame_father = frame_father self.frame.Bind(wx.EVT_BUTTON, self.anadir_reserva, self.button_anadir) self.frame.Bind(wx.EVT_BUTTON, self.cerrar_frame, self.button_cancelar) self.reserva_serie_controller = ReservaSerieController() self.user_controller = UserController() self.serie_controller = SerieController() self.frame.Show()
def __init__(self, frame_father): super(AnadirSerie, self).__init__() self.xml = xrc.XmlResource('../View/anadir_serie.xml') self.frame = self.xml.LoadFrame(None, 'Frame_Anadir_Serie') self.panel = xrc.XRCCTRL(self.frame, 'AnadirSerie_Panel') self.titulo = xrc.XRCCTRL(self.panel, 'Textctrl_Titulo') self.genero = xrc.XRCCTRL(self.panel, 'Textctrl_Genero') self.autor = xrc.XRCCTRL(self.panel, 'Textctrl_Autor') self.temporadas = xrc.XRCCTRL(self.panel, 'Textctrl_Temporadas') self.imagen = xrc.XRCCTRL(self.panel, 'Filepicker_Imagen') self.button_anadir = xrc.XRCCTRL(self.panel, 'wxID_OK') self.button_cancelar = xrc.XRCCTRL(self.panel, 'wxID_CANCEL') self.frame.SetIcon(wx.Icon("../view/System_Images/icon.png")) self.frame_father = frame_father self.frame.Bind(wx.EVT_BUTTON, self.anadir_serie, self.button_anadir) self.frame.Bind(wx.EVT_BUTTON, self.cerrar_frame, self.button_cancelar) self.serie_controller = SerieController() self.frame.Show()
def __init__(self, frame_father, id_serie): super(EliminarSerie, self).__init__() self.xml = xrc.XmlResource('../View/eliminar_serie.xml') self.frame = self.xml.LoadFrame(None, 'Frame_Eliminar_Serie') self.panel = xrc.XRCCTRL(self.frame, 'EliminarSerie_Panel') self.titulo = xrc.XRCCTRL(self.panel, 'Textctrl_Titulo') self.genero = xrc.XRCCTRL(self.panel, 'Textctrl_Genero') self.autor = xrc.XRCCTRL(self.panel, 'Textctrl_Autor') self.temporadas = xrc.XRCCTRL(self.panel, 'Textctrl_Temporadas') self.id_serie = id_serie self.frame_father = frame_father self.serie_controller = SerieController() self.button_eliminar = xrc.XRCCTRL(self.panel, 'wxID_OK') self.button_cancelar = xrc.XRCCTRL(self.panel, 'wxID_CANCEL') self.frame.SetIcon(wx.Icon("../view/System_Images/icon.png")) self.frame.Bind(wx.EVT_BUTTON, self.eliminar_serie, self.button_eliminar) self.frame.Bind(wx.EVT_BUTTON, self.cancelar, self.button_cancelar) self.cargar_datos_usuario() self.frame.Show()
def __init__(self, *args, **kw): super(ListaSerie, self).__init__(*args, **kw) self.xml = xrc.XmlResource('../View/lista_series.xml') self.frame = self.xml.LoadFrame(None, 'Frame_Series') self.panel = xrc.XRCCTRL(self.frame, 'Panel_Series') self.button_anadir_serie = xrc.XRCCTRL(self.panel, 'Button_Anadir_Serie') self.listctrl_serie = xrc.XRCCTRL(self.panel, 'Listctrl_Series') self.frame.SetIcon(wx.Icon("../view/System_Images/icon.png")) self.list_series = [] self.serie_list = [] self.serie_controller = SerieController() self.load_columns_listctrl_serie() self.load_data_listctrl_serie() self.frame.Bind(wx.EVT_LIST_ITEM_SELECTED, self.list_serie_selected, self.listctrl_serie) self.frame.Bind(wx.EVT_BUTTON, self.anadir_serie, self.button_anadir_serie) self.frame.Show()
def __init__(self, frame_father, id_reserva): super(EliminarReservaSerie, self).__init__() self.xml = xrc.XmlResource('../View/eliminar_reserva_serie.xml') self.frame = self.xml.LoadFrame(None, 'Frame_Eliminar_Reserva') self.panel = xrc.XRCCTRL(self.frame, 'EliminarReserva_Panel') self.id_reserva = xrc.XRCCTRL(self.panel, 'Textctrl_ID_Reserva') self.id_cliente = xrc.XRCCTRL(self.panel, 'Textctrl_ID_Cliente') self.username = xrc.XRCCTRL(self.panel, 'Textctrl_Username') self.id_serie = xrc.XRCCTRL(self.panel, 'Textctrl_ID_Serie') self.titulo = xrc.XRCCTRL(self.panel, 'Textctrl_titulo_serie') self.id_booking = id_reserva self.frame_father = frame_father self.reserva_serie_controller = ReservaSerieController() self.user_controller = UserController() self.serie_controller = SerieController() self.button_eliminar = xrc.XRCCTRL(self.panel, 'wxID_OK') self.button_cancelar = xrc.XRCCTRL(self.panel, 'wxID_CANCEL') self.frame.SetIcon(wx.Icon("../view/System_Images/icon.png")) self.frame.Bind(wx.EVT_BUTTON, self.eliminar_reserva, self.button_eliminar) self.frame.Bind(wx.EVT_BUTTON, self.cancelar, self.button_cancelar) self.cargar_datos_reserva() self.frame.Show()
def __init__(self, *args, **kw): super(ListaReserva, self).__init__(*args, **kw) self.xml = xrc.XmlResource('../View/lista_reservas.xml') self.frame = self.xml.LoadFrame(None, 'Frame_Reservas') self.panel = xrc.XRCCTRL(self.frame, 'Panel_Reservas') self.button_anadir_reserva = xrc.XRCCTRL(self.panel, 'Button_Anadir_Reservas') self.combox = xrc.XRCCTRL(self.panel, 'Combox') self.button_filtrar = xrc.XRCCTRL(self.panel, 'Button_Filtrar') self.listctrl_reservas = xrc.XRCCTRL(self.panel, 'Listctrl_Reservas') self.frame.SetIcon(wx.Icon("../view/System_Images/icon.png")) self.list_reservas = [] self.reservas_list = [] self.reserva_serie_controller = ReservaSerieController() self.serie_controller = SerieController() self.reserva_juego_controller = ReservaJuegoController() self.frame.Bind(wx.EVT_LIST_ITEM_SELECTED, self.list_reserva_selected, self.listctrl_reservas) self.frame.Bind(wx.EVT_BUTTON, self.cargar_datos, self.button_filtrar) self.frame.Bind(wx.EVT_BUTTON, self.cargar_eventos, self.button_anadir_reserva) self.cargar_datos_inicial() self.frame.Show()