def capture_unset_cam_image(self, e):
target_ip = self.tb_ip.GetValue()
target_user = self.tb_user.GetValue()
target_pass = self.tb_pass.GetValue()
x_dim = self.tb_x.GetValue()
y_dim = self.tb_y.GetValue()
cam_select = self.cam_select_cb.GetValue()
extra_args = '' #will be used for camera select
cam_capture_choice = self.cam_combo.GetValue()
found_login, cam_output, output_file = take_unset_test_image(target_ip, target_user, target_pass, x_dim, y_dim, cam_select, cam_capture_choice)
#print cam_output
photo_location = get_test_pic(target_ip, target_user, target_pass, output_file)
#print photo_location
self.main_image.SetBitmap(wx.BitmapFromImage(wx.Image(photo_location, wx.BITMAP_TYPE_ANY)))
评论列表
文章目录