Advertisement
Guest User

Untitled

a guest
Aug 27th, 2015
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. class Ingreso(vIngreso):
  2.     def __init__(self,parent,catalog):
  3.         vIngreso.__init__(self, parent)
  4.         self.Estado=(None,None)
  5.         self.Bind( wx.EVT_UPDATE_UI, self.OnUpdateUI )
  6.     def OnUpdateUI(self,event):
  7.         estado=(self.Operador.GetValue(),self.Clave.GetValue())
  8.         if self.Estado!=estado:
  9.             self.Estado=estado
  10.             if self.Estado[0] and self.Estado[1]:
  11.                 self.CargoRoles()  #en esta funcion valido mi operador
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement