def Mostrar_cam(self): global Cam Cam = Camera() Cam.resolution = (640, 480) Cam.size = (680, 460) Cam.pos = (100, 100) # Cam.texture self.CAM_WIDGET.add_widget(Cam)
def Camara(self): camwidget = Widget() #Create a camera Widget cam = Camera() #Get the camera cam.resolution = (640, 480) cam.size = 1000, 800 cam.pos = (-100, -100) cam.play = True #Start the camera camwidget.add_widget(cam) self.WIDGET1.add_widget(camwidget)
def Camara(self, *args): self.Dispersion2() camwidget = Widget() #Create a camera Widget cam = Camera() #Get the camera cam.resolution = (640, 480) cam.size = 1000, 800 cam.pos = (-100, -100) cam.play = True #Start the camera camwidget.add_widget(cam) self.dis2.add_widget(camwidget) self.RelativaDispo.add_widget(self.dis2)
def Camara(self, *args): self.Dispersion2() global cam camwidget = Widget() #Create a camera Widget cam = Camera() #Get the camera cam.resolution = (640, 480) cam.size = 1000, 800 cam.pos = (-100, -100) cam.play = True #Start the camera camwidget.add_widget(cam) self.dis2.add_widget(camwidget) # Mprincipal.add_widget(self.dis2) MCamara.add_widget(self.dis2)